#797AF6

Closest named color: Cornflower (#6A79F7). oklch(64% 0.181 279.6), rgb(121, 122, 246).

Aa

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

About this color

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

Hue familyBlues
Lightnessmedium-light (64%)
Chromavivid (0.181)
Temperaturecool
Nearest nameCornflower (#6A79F7)
Black text5.92:1
White text3.54:1

Values

HEX#797AF6
RGBrgb(121, 122, 246)
HSLhsl(240, 87%, 72%)
OKLCHoklch(64% 0.181 279.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 #797AF6 3.54:1 AA large text Lc -68.2 Content text, not long reading
Black text on #797AF6 5.92:1 AA Lc 41.3 Non-text elements, placeholder text
#797AF6 text on white 3.54:1 AA large text Lc 62.8 Content text, not long reading
#797AF6 text on black 5.92:1 AA Lc -38.9 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

    #F4F5FE

    oklch(97.2% 0.012 281.1)

  2. Step 100

    100

    #E6E8FB

    oklch(93.5% 0.026 281.1)

  3. Step 200

    200

    #D2D6FA

    oklch(88.4% 0.05 280.3)

  4. Step 300

    300

    #B4BBF9

    oklch(80.9% 0.088 279.2)

  5. Step 400

    400

    #9095F7

    oklch(70.7% 0.142 279.9)

  6. Step 500

    500 (this color)

    #797AF6

    oklch(64% 0.181 279.6)

  7. Step 600

    600

    #625CE2

    oklch(55.6% 0.197 279.8)

  8. Step 700

    700

    #514BC4

    oklch(49.1% 0.183 279.5)

  9. Step 800

    800

    #423E9E

    oklch(42.6% 0.151 279.7)

  10. Step 900

    900

    #37367E

    oklch(37.6% 0.119 279.7)

  11. Step 950

    950

    #20204A

    oklch(26.9% 0.076 280)

Export this scale for Tailwind in the Tailwind colors tool

#797AF6 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)#3C8DFA0.072
Deuteranopia (no green cones)#2E83F30.075
Tritanopia (no blue cones)#4595AD0.156
Achromatopsia (no color)#8888880.181

Harmonies

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

Complementary

The opposite hue (180°).

  • #797AF6

    #797AF6

    oklch(64% 0.181 279.6)

  • #A08D00

    #A08D00

    oklch(64.1% 0.133 99.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #797AF6

    #797AF6

    oklch(64% 0.181 279.6)

  • #008FF3

    #008FF3

    oklch(63.9% 0.18 249.7)

  • #AD67DD

    #AD67DD

    oklch(64% 0.18 309.6)

Open the analogous palette in the generator

Split complementary

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

  • #797AF6

    #797AF6

    oklch(64% 0.181 279.6)

  • #C17A00

    #C17A00

    oklch(64% 0.139 69.5)

  • #699F00

    #699F00

    oklch(64% 0.171 129.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #797AF6

    #797AF6

    oklch(64% 0.181 279.6)

  • #E35B26

    #E35B26

    oklch(64% 0.181 39.6)

  • #00A66C

    #00A66C

    oklch(64% 0.145 159.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #797AF6

    #797AF6

    oklch(64% 0.181 279.6)

  • #E25173

    #E25173

    oklch(63.8% 0.181 9.7)

  • #A08D00

    #A08D00

    oklch(64.1% 0.133 99.7)

  • #00A19A

    #00A19A

    oklch(63.9% 0.111 189.3)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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