#797CF5

Closest named color: Cornflower (#6A79F7). oklch(64.3% 0.177 279.1), rgb(121, 124, 245).

Aa

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

About this color

#797CF5 is a medium-light, vivid blue. In OKLCH its lightness is 64%, its chroma 0.177 and its hue 279°. Its hue sits on the cool side of the wheel. The nearest named color is Cornflower (#6A79F7), ΔE 0.022 away. Black text reads best on it, at 6.01:1.

Hue familyBlues
Lightnessmedium-light (64%)
Chromavivid (0.177)
Temperaturecool
Nearest nameCornflower (#6A79F7)
Black text6.01:1
White text3.49:1

Values

HEX#797CF5
RGBrgb(121, 124, 245)
HSLhsl(239, 86%, 72%)
OKLCHoklch(64.3% 0.177 279.1)

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 #797CF5 3.49:1 AA large text Lc -67.7 Content text, not long reading
Black text on #797CF5 6.01:1 AA Lc 41.8 Non-text elements, placeholder text
#797CF5 text on white 3.49:1 AA large text Lc 62.2 Content text, not long reading
#797CF5 text on black 6.01:1 AA Lc -39.5 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

    #F3F5FD

    oklch(97.1% 0.011 274.9)

  2. Step 100

    100

    #E6E9FB

    oklch(93.7% 0.024 278.4)

  3. Step 200

    200

    #D2D7F9

    oklch(88.6% 0.047 278.8)

  4. Step 300

    300

    #B4BBF8

    oklch(80.8% 0.086 279.2)

  5. Step 400

    400

    #8F96F5

    oklch(70.8% 0.138 279)

  6. Step 500

    500 (this color)

    #797CF5

    oklch(64.3% 0.177 279.1)

  7. Step 600

    600

    #615EE0

    oklch(55.7% 0.192 279.2)

  8. Step 700

    700

    #504CC2

    oklch(49.1% 0.179 279)

  9. Step 800

    800

    #413F9D

    oklch(42.6% 0.149 279)

  10. Step 900

    900

    #37377D

    oklch(37.8% 0.116 279.3)

  11. Step 950

    950

    #202149

    oklch(27.1% 0.073 279.3)

Export this scale for Tailwind in the Tailwind colors tool

#797CF5 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)#428EF90.067
Deuteranopia (no green cones)#3584F20.070
Tritanopia (no blue cones)#4697AD0.155
Achromatopsia (no color)#8989890.177

Harmonies

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

Complementary

The opposite hue (180°).

  • #797CF5

    #797CF5

    oklch(64.3% 0.177 279.1)

  • #A18D00

    #A18D00

    oklch(64.2% 0.133 99.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #797CF5

    #797CF5

    oklch(64.3% 0.177 279.1)

  • #0491F2

    #0491F2

    oklch(64.3% 0.176 248.9)

  • #AC69DD

    #AC69DD

    oklch(64.2% 0.177 308.9)

Open the analogous palette in the generator

Split complementary

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

  • #797CF5

    #797CF5

    oklch(64.3% 0.177 279.1)

  • #C37B00

    #C37B00

    oklch(64.4% 0.14 69.3)

  • #6BA000

    #6BA000

    oklch(64.4% 0.172 129.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #797CF5

    #797CF5

    oklch(64.3% 0.177 279.1)

  • #E25D2D

    #E25D2D

    oklch(64.2% 0.177 39)

  • #00A76B

    #00A76B

    oklch(64.2% 0.148 159)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #797CF5

    #797CF5

    oklch(64.3% 0.177 279.1)

  • #E25476

    #E25476

    oklch(64.3% 0.178 9)

  • #A18D00

    #A18D00

    oklch(64.2% 0.133 99.2)

  • #00A29B

    #00A29B

    oklch(64.2% 0.111 189.4)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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