#787CF2

Closest named color: Cornflower (#6A79F7). oklch(64% 0.173 278.9), rgb(120, 124, 242).

Aa

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

About this color

#787CF2 is a medium-light, vivid blue. In OKLCH its lightness is 64%, its chroma 0.173 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 5.96:1.

Hue familyBlues
Lightnessmedium-light (64%)
Chromavivid (0.173)
Temperaturecool
Nearest nameCornflower (#6A79F7)
Black text5.96:1
White text3.52:1

Values

HEX#787CF2
RGBrgb(120, 124, 242)
HSLhsl(238, 82%, 71%)
OKLCHoklch(64% 0.173 278.9)

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 #787CF2 3.52:1 AA large text Lc -68.0 Content text, not long reading
Black text on #787CF2 5.96:1 AA Lc 41.5 Non-text elements, placeholder text
#787CF2 text on white 3.52:1 AA large text Lc 62.6 Content text, not long reading
#787CF2 text on black 5.96:1 AA Lc -39.1 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

    #B4BCF7

    oklch(81% 0.084 278.4)

  5. Step 400

    400

    #8F96F3

    oklch(70.6% 0.135 279.1)

  6. Step 500

    500 (this color)

    #787CF2

    oklch(64% 0.173 278.9)

  7. Step 600

    600

    #605FDD

    oklch(55.6% 0.187 278.8)

  8. Step 700

    700

    #504DC0

    oklch(49.1% 0.175 278.9)

  9. Step 800

    800

    #41409B

    oklch(42.6% 0.144 278.8)

  10. Step 900

    900

    #36387C

    oklch(37.8% 0.113 278.3)

  11. Step 950

    950

    #202148

    oklch(27% 0.071 279.4)

Export this scale for Tailwind in the Tailwind colors tool

#787CF2 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)#458DF60.063
Deuteranopia (no green cones)#3884EF0.067
Tritanopia (no blue cones)#4696AC0.151
Achromatopsia (no color)#8989890.173

Harmonies

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

Complementary

The opposite hue (180°).

  • #787CF2

    #787CF2

    oklch(64% 0.173 278.9)

  • #A18C00

    #A18C00

    oklch(64% 0.132 98.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #787CF2

    #787CF2

    oklch(64% 0.173 278.9)

  • #0C90EF

    #0C90EF

    oklch(64% 0.173 248.9)

  • #AB6ADB

    #AB6ADB

    oklch(64.2% 0.173 308.9)

Open the analogous palette in the generator

Split complementary

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

  • #787CF2

    #787CF2

    oklch(64% 0.173 278.9)

  • #C27A00

    #C27A00

    oklch(64.1% 0.14 69.1)

  • #6C9E00

    #6C9E00

    oklch(63.9% 0.169 128.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #787CF2

    #787CF2

    oklch(64% 0.173 278.9)

  • #E05E30

    #E05E30

    oklch(64% 0.173 39)

  • #00A66A

    #00A66A

    oklch(63.9% 0.147 158.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #787CF2

    #787CF2

    oklch(64% 0.173 278.9)

  • #DF5576

    #DF5576

    oklch(63.9% 0.173 8.8)

  • #A18C00

    #A18C00

    oklch(64% 0.132 98.6)

  • #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 #787CF2, closest first.

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

Similar named colors

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

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