#9798EB

Closest named color: Periwinkle Blue (#8F99FB). oklch(71.2% 0.12 282.4), rgb(151, 152, 235).

Aa

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

About this color

#9798EB is a medium-light, moderately saturated purple. In OKLCH its lightness is 71%, its chroma 0.120 and its hue 282°. Its hue sits on the cool side of the wheel. The nearest named color is Periwinkle Blue (#8F99FB), ΔE 0.025 away. Black text reads best on it, at 8.00:1.

Hue familyPurples
Lightnessmedium-light (71%)
Chromamoderately saturated (0.120)
Temperaturecool
Nearest namePeriwinkle Blue (#8F99FB)
Black text8.00:1
White text2.62:1

Values

HEX#9798EB
RGBrgb(151, 152, 235)
HSLhsl(239, 68%, 76%)
OKLCHoklch(71.2% 0.12 282.4)

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 #9798EB 2.62:1 Fails Lc -56.2 Large or bold text, headings
Black text on #9798EB 8.00:1 AAA Lc 52.9 Large or bold text, headings
#9798EB text on white 2.62:1 Fails Lc 51.1 Large or bold text, headings
#9798EB text on black 8.00:1 AAA Lc -50.8 Large or bold text, headings

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 400.

  1. Step 50

    50

    #F4F5FC

    oklch(97.1% 0.009 279.7)

  2. Step 100

    100

    #E7E8F8

    oklch(93.5% 0.022 283.1)

  3. Step 200

    200

    #D4D6F5

    oklch(88.4% 0.043 282.6)

  4. Step 300

    300

    #B9BBF1

    oklch(80.9% 0.076 282.9)

  5. Step 400

    400 (this color)

    #9798EB

    oklch(71.2% 0.12 282.4)

  6. Step 500

    500

    #7D7AE3

    oklch(63.1% 0.154 282.3)

  7. Step 600

    600

    #6861D0

    oklch(55.6% 0.166 282.4)

  8. Step 700

    700

    #574FB4

    oklch(49% 0.155 282.6)

  9. Step 800

    800

    #474292

    oklch(42.8% 0.128 282.4)

  10. Step 900

    900

    #3B3874

    oklch(37.6% 0.1 282.7)

  11. Step 950

    950

    #222144

    oklch(26.9% 0.064 282.5)

Export this scale for Tailwind in the Tailwind colors tool

#9798EB 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)#7EA3EE0.039
Deuteranopia (no green cones)#7A9DE90.038
Tritanopia (no blue cones)#80A8B70.104
Achromatopsia (no color)#A0A0A00.120

Harmonies

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

Complementary

The opposite hue (180°).

  • #9798EB

    #9798EB

    oklch(71.2% 0.12 282.4)

  • #B1A542

    #B1A542

    oklch(71.3% 0.12 102.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #9798EB

    #9798EB

    oklch(71.2% 0.12 282.4)

  • #69A6EB

    #69A6EB

    oklch(71.2% 0.12 252.5)

  • #BC8BD8

    #BC8BD8

    oklch(71.2% 0.121 312.7)

Open the analogous palette in the generator

Split complementary

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

  • #9798EB

    #9798EB

    oklch(71.2% 0.12 282.4)

  • #D09544

    #D09544

    oklch(71.2% 0.12 72.2)

  • #85B261

    #85B261

    oklch(71.2% 0.12 132.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #9798EB

    #9798EB

    oklch(71.2% 0.12 282.4)

  • #E18864

    #E18864

    oklch(71.3% 0.12 42.5)

  • #4FB98C

    #4FB98C

    oklch(71.1% 0.119 162.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #9798EB

    #9798EB

    oklch(71.2% 0.12 282.4)

  • #E2818E

    #E2818E

    oklch(71.2% 0.12 12)

  • #B1A542

    #B1A542

    oklch(71.3% 0.12 102.4)

  • #11B9B6

    #11B9B6

    oklch(71.1% 0.12 192.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #9798EB 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.