#797CC7

Closest named color: Deep Lilac (#966EBD). oklch(61.6% 0.113 280.8), rgb(121, 124, 199).

Aa

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

About this color

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

Hue familyPurples
Lightnessmedium-dark (62%)
Chromamoderately saturated (0.113)
Temperaturecool
Nearest nameDeep Lilac (#966EBD)
Black text5.52:1
White text3.80:1

Values

HEX#797CC7
RGBrgb(121, 124, 199)
HSLhsl(238, 41%, 63%)
OKLCHoklch(61.6% 0.113 280.8)

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 #797CC7 3.80:1 AA large text Lc -71.0 Content text, not long reading
Black text on #797CC7 5.52:1 AA Lc 38.6 Non-text elements, placeholder text
#797CC7 text on white 3.80:1 AA large text Lc 65.5 Content text, not long reading
#797CC7 text on black 5.52:1 AA Lc -36.2 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

    #F4F5FA

    oklch(97.1% 0.007 277.2)

  2. Step 100

    100

    #E7E9F5

    oklch(93.6% 0.016 278.5)

  3. Step 200

    200

    #D5D7EE

    oklch(88.5% 0.032 281.8)

  4. Step 300

    300

    #B9BDE4

    oklch(80.8% 0.055 280.5)

  5. Step 400

    400

    #969AD7

    oklch(70.6% 0.089 281)

  6. Step 500

    500 (this color)

    #797CC7

    oklch(61.6% 0.113 280.8)

  7. Step 600

    600

    #6769B9

    oklch(55.6% 0.122 280.6)

  8. Step 700

    700

    #56579F

    oklch(49.1% 0.113 280.8)

  9. Step 800

    800

    #464781

    oklch(42.6% 0.095 280.8)

  10. Step 900

    900

    #3B3C68

    oklch(37.7% 0.074 281.2)

  11. Step 950

    950

    #22233D

    oklch(26.9% 0.048 281)

Export this scale for Tailwind in the Tailwind colors tool

#797CC7 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)#6386CA0.036
Deuteranopia (no green cones)#5F80C50.035
Tritanopia (no blue cones)#628B980.099
Achromatopsia (no color)#8383830.113

Harmonies

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

Complementary

The opposite hue (180°).

  • #797CC7

    #797CC7

    oklch(61.6% 0.113 280.8)

  • #948628

    #948628

    oklch(61.5% 0.112 100.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #797CC7

    #797CC7

    oklch(61.6% 0.113 280.8)

  • #4D89C6

    #4D89C6

    oklch(61.6% 0.112 250.5)

  • #9A70B7

    #9A70B7

    oklch(61.5% 0.114 310.5)

Open the analogous palette in the generator

Split complementary

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

  • #797CC7

    #797CC7

    oklch(61.6% 0.113 280.8)

  • #AF782D

    #AF782D

    oklch(61.6% 0.112 70.9)

  • #6D9247

    #6D9247

    oklch(61.5% 0.112 130.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #797CC7

    #797CC7

    oklch(61.6% 0.113 280.8)

  • #BD6C4E

    #BD6C4E

    oklch(61.6% 0.112 40.9)

  • #39996E

    #39996E

    oklch(61.5% 0.112 160.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #797CC7

    #797CC7

    oklch(61.6% 0.113 280.8)

  • #BE6674

    #BE6674

    oklch(61.5% 0.113 10.8)

  • #948628

    #948628

    oklch(61.5% 0.112 100.6)

  • #009994

    #009994

    oklch(61.7% 0.106 190.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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