#797AC7

Closest named color: Deep Lilac (#966EBD). oklch(61.2% 0.116 281.9), rgb(121, 122, 199).

Aa

Black text reads best on this color (5.42:1).

About this color

#797AC7 is a medium-dark, moderately saturated purple. In OKLCH its lightness is 61%, its chroma 0.116 and its hue 282°. Its hue sits on the cool side of the wheel. The nearest named color is Deep Lilac (#966EBD), ΔE 0.051 away. Black text reads best on it, at 5.42:1.

Hue familyPurples
Lightnessmedium-dark (61%)
Chromamoderately saturated (0.116)
Temperaturecool
Nearest nameDeep Lilac (#966EBD)
Black text5.42:1
White text3.87:1

Values

HEX#797AC7
RGBrgb(121, 122, 199)
HSLhsl(239, 41%, 63%)
OKLCHoklch(61.2% 0.116 281.9)

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 #797AC7 3.87:1 AA large text Lc -71.6 Content text, not long reading
Black text on #797AC7 5.42:1 AA Lc 38.0 Non-text elements, placeholder text
#797AC7 text on white 3.87:1 AA large text Lc 66.1 Content text, not long reading
#797AC7 text on black 5.42:1 AA Lc -35.6 Non-text elements, placeholder text

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 500.

  1. Step 50

    50

    #F4F5FB

    oklch(97.1% 0.008 278.6)

  2. Step 100

    100

    #E8E9F5

    oklch(93.7% 0.016 282.3)

  3. Step 200

    200

    #D5D7EE

    oklch(88.5% 0.032 281.8)

  4. Step 300

    300

    #BABDE5

    oklch(80.9% 0.056 281.7)

  5. Step 400

    400

    #979AD8

    oklch(70.7% 0.09 281.7)

  6. Step 500

    500 (this color)

    #797AC7

    oklch(61.2% 0.116 281.9)

  7. Step 600

    600

    #6968BA

    oklch(55.6% 0.125 282.1)

  8. Step 700

    700

    #5756A1

    oklch(49.1% 0.118 281.8)

  9. Step 800

    800

    #474782

    oklch(42.7% 0.096 281.5)

  10. Step 900

    900

    #3B3C68

    oklch(37.7% 0.074 281.2)

  11. Step 950

    950

    #23233D

    oklch(27% 0.048 282.7)

Export this scale for Tailwind in the Tailwind colors tool

#797AC7 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)#6084CA0.038
Deuteranopia (no green cones)#5C7FC50.039
Tritanopia (no blue cones)#6289970.100
Achromatopsia (no color)#8181810.116

Harmonies

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

Complementary

The opposite hue (180°).

  • #797AC7

    #797AC7

    oklch(61.2% 0.116 281.9)

  • #928623

    #928623

    oklch(61.3% 0.116 102.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #797AC7

    #797AC7

    oklch(61.2% 0.116 281.9)

  • #4C87C7

    #4C87C7

    oklch(61.2% 0.116 251.9)

  • #9B6EB6

    #9B6EB6

    oklch(61.2% 0.116 312)

Open the analogous palette in the generator

Split complementary

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

  • #797AC7

    #797AC7

    oklch(61.2% 0.116 281.9)

  • #AE7727

    #AE7727

    oklch(61.2% 0.115 72)

  • #699245

    #699245

    oklch(61.2% 0.116 132.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #797AC7

    #797AC7

    oklch(61.2% 0.116 281.9)

  • #BD6A4A

    #BD6A4A

    oklch(61.2% 0.116 41.5)

  • #31996E

    #31996E

    oklch(61.2% 0.116 161.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #797AC7

    #797AC7

    oklch(61.2% 0.116 281.9)

  • #BE6471

    #BE6471

    oklch(61.1% 0.116 11.9)

  • #928623

    #928623

    oklch(61.3% 0.116 102.2)

  • #009794

    #009794

    oklch(61.1% 0.105 192.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #797AC7 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.