#797DFC

Closest named color: Cornflower (#6A79F7). oklch(64.9% 0.185 278.6), rgb(121, 125, 252).

Aa

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

About this color

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

Hue familyBlues
Lightnessmedium-light (65%)
Chromavivid (0.185)
Temperaturecool
Nearest nameCornflower (#6A79F7)
Black text6.15:1
White text3.41:1

Values

HEX#797DFC
RGBrgb(121, 125, 252)
HSLhsl(238, 96%, 73%)
OKLCHoklch(64.9% 0.185 278.6)

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 #797DFC 3.41:1 AA large text Lc -66.8 Content text, not long reading
Black text on #797DFC 6.15:1 AA Lc 42.7 Non-text elements, placeholder text
#797DFC text on white 3.41:1 AA large text Lc 61.4 Content text, not long reading
#797DFC text on black 6.15:1 AA Lc -40.3 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

    #F3F5FE

    oklch(97.1% 0.012 276.1)

  2. Step 100

    100

    #E5E9FC

    oklch(93.7% 0.026 276.4)

  3. Step 200

    200

    #D1D7FB

    oklch(88.6% 0.05 277.9)

  4. Step 300

    300

    #B3BBFB

    oklch(80.9% 0.091 278.6)

  5. Step 400

    400

    #8D95F9

    oklch(70.6% 0.145 278.5)

  6. Step 500

    500 (this color)

    #797DFC

    oklch(64.9% 0.185 278.6)

  7. Step 600

    600

    #5F5CE5

    oklch(55.6% 0.202 278.6)

  8. Step 700

    700

    #4F4BC7

    oklch(49.2% 0.187 278.4)

  9. Step 800

    800

    #403EA1

    oklch(42.7% 0.156 278.4)

  10. Step 900

    900

    #36367F

    oklch(37.6% 0.12 278.9)

  11. Step 950

    950

    #1F204B

    oklch(26.9% 0.078 278.8)

Export this scale for Tailwind in the Tailwind colors tool

#797DFC 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)#3C90FF0.070
Deuteranopia (no green cones)#2C86F90.074
Tritanopia (no blue cones)#3F99B10.161
Achromatopsia (no color)#8B8B8B0.185

Harmonies

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

Complementary

The opposite hue (180°).

  • #797DFC

    #797DFC

    oklch(64.9% 0.185 278.6)

  • #A48F00

    #A48F00

    oklch(64.9% 0.134 98.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #797DFC

    #797DFC

    oklch(64.9% 0.185 278.6)

  • #0093F4

    #0093F4

    oklch(64.9% 0.177 248.5)

  • #AF69E3

    #AF69E3

    oklch(64.9% 0.185 308.6)

Open the analogous palette in the generator

Split complementary

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

  • #797DFC

    #797DFC

    oklch(64.9% 0.185 278.6)

  • #C67C00

    #C67C00

    oklch(65% 0.142 68.7)

  • #6FA100

    #6FA100

    oklch(64.9% 0.171 128.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #797DFC

    #797DFC

    oklch(64.9% 0.185 278.6)

  • #E85C2A

    #E85C2A

    oklch(64.9% 0.184 38.7)

  • #00AA6B

    #00AA6B

    oklch(65% 0.151 158.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #797DFC

    #797DFC

    oklch(64.9% 0.185 278.6)

  • #E75278

    #E75278

    oklch(64.8% 0.185 8.4)

  • #A48F00

    #A48F00

    oklch(64.9% 0.134 98.8)

  • #00A49C

    #00A49C

    oklch(64.8% 0.112 188.7)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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