#796D9B

Closest named color: Dark Lavender (#856798). oklch(56.4% 0.071 296), rgb(121, 109, 155).

Aa

White text reads best on this color (4.69:1).

About this color

#796D9B is a medium-dark, moderately saturated purple. In OKLCH its lightness is 56%, its chroma 0.071 and its hue 296°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Lavender (#856798), ΔE 0.023 away. White text reads best on it, at 4.69:1.

Hue familyPurples
Lightnessmedium-dark (56%)
Chromamoderately saturated (0.071)
Temperaturein between
Nearest nameDark Lavender (#856798)
Black text4.47:1
White text4.69:1

Values

HEX#796D9B
RGBrgb(121, 109, 155)
HSLhsl(256, 19%, 52%)
OKLCHoklch(56.4% 0.071 296)

Contrast

WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.

PairWCAG 2ResultAPCAAPCA guidance
White text on #796D9B 4.69:1 AA Lc -78.0 Fine for body text
Black text on #796D9B 4.47:1 AA large text Lc 31.5 Non-text elements, placeholder text
#796D9B text on white 4.69:1 AA Lc 72.6 Content text, not long reading
#796D9B text on black 4.47:1 AA large text Lc -29.1 Dividers and decoration only

Tints and shades

A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 600.

  1. Step 50

    50

    #F5F5F8

    oklch(97.1% 0.004 286.3)

  2. Step 100

    100

    #EAE9EF

    oklch(93.7% 0.008 293.9)

  3. Step 200

    200

    #DAD7E4

    oklch(88.5% 0.018 296.6)

  4. Step 300

    300

    #C2BDD4

    oklch(81% 0.032 295.6)

  5. Step 400

    400

    #A39BBE

    oklch(70.8% 0.051 295.5)

  6. Step 500

    500

    #8D82AD

    oklch(63.2% 0.065 296.2)

  7. Step 600

    600 (this color)

    #796D9B

    oklch(56.4% 0.071 296)

  8. Step 700

    700

    #645982

    oklch(49.1% 0.066 296.2)

  9. Step 800

    800

    #51496A

    oklch(42.7% 0.055 295.1)

  10. Step 900

    900

    #433D56

    oklch(37.7% 0.043 295.3)

  11. Step 950

    950

    #272432

    oklch(27% 0.026 294.4)

Export this scale for Tailwind in the Tailwind colors tool

#796D9B with color blindness

Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#62749D0.036
Deuteranopia (no green cones)#64739A0.034
Tritanopia (no blue cones)#72747D0.058
Achromatopsia (no color)#7474740.071

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

Complementary

The opposite hue (180°).

  • #796D9B

    #796D9B

    oklch(56.4% 0.071 296)

  • #737B49

    #737B49

    oklch(56.4% 0.072 116.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #796D9B

    #796D9B

    oklch(56.4% 0.071 296)

  • #6275A0

    #6275A0

    oklch(56.4% 0.071 265.8)

  • #8C678C

    #8C678C

    oklch(56.4% 0.071 326.5)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #796D9B

    #796D9B

    oklch(56.4% 0.071 296)

  • #887343

    #887343

    oklch(56.4% 0.071 86.5)

  • #5A815C

    #5A815C

    oklch(56.4% 0.071 145.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #796D9B

    #796D9B

    oklch(56.4% 0.071 296)

  • #966B4C

    #966B4C

    oklch(56.5% 0.071 56.5)

  • #438374

    #438374

    oklch(56.3% 0.071 176.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #796D9B

    #796D9B

    oklch(56.4% 0.071 296)

  • #9B6560

    #9B6560

    oklch(56.3% 0.071 25.4)

  • #737B49

    #737B49

    oklch(56.4% 0.072 116.2)

  • #3B828A

    #3B828A

    oklch(56.5% 0.072 205.3)

Open the square palette in the generator

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #796D9B, closest first.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #796D9B in your product

Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.