#787BEA

Closest named color: Cornflower (#6A79F7). oklch(63.3% 0.163 279.5), rgb(120, 123, 234).

Aa

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

About this color

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

Hue familyBlues
Lightnessmedium-light (63%)
Chromavivid (0.163)
Temperaturecool
Nearest nameCornflower (#6A79F7)
Black text5.81:1
White text3.60:1

Values

HEX#787BEA
RGBrgb(120, 123, 234)
HSLhsl(238, 73%, 69%)
OKLCHoklch(63.3% 0.163 279.5)

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 #787BEA 3.60:1 AA large text Lc -69.0 Content text, not long reading
Black text on #787BEA 5.81:1 AA Lc 40.6 Non-text elements, placeholder text
#787BEA text on white 3.60:1 AA large text Lc 63.5 Content text, not long reading
#787BEA text on black 5.81:1 AA Lc -38.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

    #F4F5FD

    oklch(97.2% 0.011 280.5)

  2. Step 100

    100

    #E6E9FA

    oklch(93.7% 0.023 277.9)

  3. Step 200

    200

    #D2D7F7

    oklch(88.5% 0.044 278.4)

  4. Step 300

    300

    #B5BCF4

    oklch(80.9% 0.079 278.9)

  5. Step 400

    400

    #9197EF

    oklch(70.8% 0.128 279.6)

  6. Step 500

    500 (this color)

    #787BEA

    oklch(63.3% 0.163 279.5)

  7. Step 600

    600

    #6260D7

    oklch(55.5% 0.178 279.7)

  8. Step 700

    700

    #514FBB

    oklch(49.1% 0.165 279.2)

  9. Step 800

    800

    #424197

    oklch(42.6% 0.137 279.4)

  10. Step 900

    900

    #383878

    oklch(37.7% 0.106 280)

  11. Step 950

    950

    #202146

    oklch(26.8% 0.068 279.6)

Export this scale for Tailwind in the Tailwind colors tool

#787BEA 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)#4A8BEE0.060
Deuteranopia (no green cones)#4082E80.062
Tritanopia (no blue cones)#4D93A70.143
Achromatopsia (no color)#8787870.164

Harmonies

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

Complementary

The opposite hue (180°).

  • #787BEA

    #787BEA

    oklch(63.3% 0.163 279.5)

  • #9E8B00

    #9E8B00

    oklch(63.4% 0.132 99.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #787BEA

    #787BEA

    oklch(63.3% 0.163 279.5)

  • #228EE8

    #228EE8

    oklch(63.4% 0.164 249.5)

  • #A86AD3

    #A86AD3

    oklch(63.4% 0.163 309.8)

Open the analogous palette in the generator

Split complementary

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

  • #787BEA

    #787BEA

    oklch(63.3% 0.163 279.5)

  • #BE7800

    #BE7800

    oklch(63.2% 0.137 69.5)

  • #699C12

    #699C12

    oklch(63.3% 0.164 129.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #787BEA

    #787BEA

    oklch(63.3% 0.163 279.5)

  • #D96034

    #D96034

    oklch(63.3% 0.163 39.6)

  • #00A46A

    #00A46A

    oklch(63.4% 0.145 159.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #787BEA

    #787BEA

    oklch(63.3% 0.163 279.5)

  • #D95874

    #D95874

    oklch(63.3% 0.163 9.7)

  • #9E8B00

    #9E8B00

    oklch(63.4% 0.132 99.6)

  • #009F98

    #009F98

    oklch(63.4% 0.11 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 #787BEA, closest first.

No curated palette has a color within ΔE 0.04 of #787BEA.

Similar named colors

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

Use #787BEA 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.