#797BE3

Closest named color: Cornflower (#6A79F7). oklch(63% 0.154 280.2), rgb(121, 123, 227).

Aa

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

About this color

#797BE3 is a medium-light, vivid purple. In OKLCH its lightness is 63%, its chroma 0.154 and its hue 280°. Its hue sits on the cool side of the wheel. The nearest named color is Cornflower (#6A79F7), ΔE 0.037 away. Black text reads best on it, at 5.75:1.

Hue familyPurples
Lightnessmedium-light (63%)
Chromavivid (0.154)
Temperaturecool
Nearest nameCornflower (#6A79F7)
Black text5.75:1
White text3.64:1

Values

HEX#797BE3
RGBrgb(121, 123, 227)
HSLhsl(239, 65%, 68%)
OKLCHoklch(63% 0.154 280.2)

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 #797BE3 3.64:1 AA large text Lc -69.4 Content text, not long reading
Black text on #797BE3 5.75:1 AA Lc 40.2 Non-text elements, placeholder text
#797BE3 text on white 3.64:1 AA large text Lc 63.9 Content text, not long reading
#797BE3 text on black 5.75:1 AA Lc -37.8 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

    #F4F5FC

    oklch(97.1% 0.009 279.7)

  2. Step 100

    100

    #E7E9F9

    oklch(93.7% 0.022 280.3)

  3. Step 200

    200

    #D3D7F5

    oklch(88.5% 0.041 279.5)

  4. Step 300

    300

    #B7BCF1

    oklch(81% 0.075 280.4)

  5. Step 400

    400

    #9297EA

    oklch(70.6% 0.121 280.2)

  6. Step 500

    500 (this color)

    #797BE3

    oklch(63% 0.154 280.2)

  7. Step 600

    600

    #6462D1

    oklch(55.6% 0.167 280.3)

  8. Step 700

    700

    #5350B5

    oklch(49% 0.155 280.3)

  9. Step 800

    800

    #444293

    oklch(42.6% 0.13 280.5)

  10. Step 900

    900

    #393975

    oklch(37.7% 0.1 280.5)

  11. Step 950

    950

    #212244

    oklch(27% 0.062 280.1)

Export this scale for Tailwind in the Tailwind colors tool

#797BE3 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)#508AE70.056
Deuteranopia (no green cones)#4882E10.057
Tritanopia (no blue cones)#5391A40.134
Achromatopsia (no color)#8686860.154

Harmonies

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

Complementary

The opposite hue (180°).

  • #797BE3

    #797BE3

    oklch(63% 0.154 280.2)

  • #9C8A00

    #9C8A00

    oklch(63% 0.131 100.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #797BE3

    #797BE3

    oklch(63% 0.154 280.2)

  • #308DE1

    #308DE1

    oklch(63% 0.153 249.9)

  • #A66BCD

    #A66BCD

    oklch(63% 0.153 310.5)

Open the analogous palette in the generator

Split complementary

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

  • #797BE3

    #797BE3

    oklch(63% 0.154 280.2)

  • #BC7800

    #BC7800

    oklch(63% 0.136 70.4)

  • #699A25

    #699A25

    oklch(62.9% 0.153 130.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #797BE3

    #797BE3

    oklch(63% 0.154 280.2)

  • #D46339

    #D46339

    oklch(63% 0.154 40.2)

  • #00A26B

    #00A26B

    oklch(62.9% 0.141 160.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #797BE3

    #797BE3

    oklch(63% 0.154 280.2)

  • #D45B73

    #D45B73

    oklch(63% 0.154 10.3)

  • #9C8A00

    #9C8A00

    oklch(63% 0.131 100.1)

  • #009E98

    #009E98

    oklch(63.1% 0.109 190)

Open the square palette in the generator

Palettes with this color

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

No curated palette has a color within ΔE 0.04 of #797BE3.

Similar named colors

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

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