#9798FE

Closest named color: Periwinkle Blue (#8F99FB). oklch(72.2% 0.147 281.7), rgb(151, 152, 254).

Aa

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

About this color

#9798FE is a medium-light, vivid purple. In OKLCH its lightness is 72%, its chroma 0.147 and its hue 282°. Its hue sits on the cool side of the wheel. The nearest named color is Periwinkle Blue (#8F99FB), ΔE 0.012 away. Black text reads best on it, at 8.23:1.

Hue familyPurples
Lightnessmedium-light (72%)
Chromavivid (0.147)
Temperaturecool
Nearest namePeriwinkle Blue (#8F99FB)
Black text8.23:1
White text2.54:1

Values

HEX#9798FE
RGBrgb(151, 152, 254)
HSLhsl(239, 98%, 79%)
OKLCHoklch(72.2% 0.147 281.7)

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 #9798FE 2.54:1 Fails Lc -54.9 Large or bold text, headings
Black text on #9798FE 8.23:1 AAA Lc 54.2 Large or bold text, headings
#9798FE text on white 2.54:1 Fails Lc 49.8 Large or bold text, headings
#9798FE text on black 8.23:1 AAA Lc -52.1 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

    #F4F5FE

    oklch(97.2% 0.012 281.1)

  2. Step 100

    100

    #E6E8FC

    oklch(93.5% 0.027 281.3)

  3. Step 200

    200

    #D3D6FB

    oklch(88.6% 0.051 281.6)

  4. Step 300

    300

    #B6BAFB

    oklch(80.9% 0.092 281.4)

  5. Step 400

    400 (this color)

    #9798FE

    oklch(72.2% 0.147 281.7)

  6. Step 500

    500

    #7B75F6

    oklch(63.2% 0.187 281.7)

  7. Step 600

    600

    #6659E4

    oklch(55.6% 0.203 281.8)

  8. Step 700

    700

    #5548C7

    oklch(49.2% 0.189 281.5)

  9. Step 800

    800

    #453CA1

    oklch(42.7% 0.157 281.4)

  10. Step 900

    900

    #39357F

    oklch(37.7% 0.121 281.3)

  11. Step 950

    950

    #21204B

    oklch(27.1% 0.077 280.9)

Export this scale for Tailwind in the Tailwind colors tool

#9798FE 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)#74A6FF0.052
Deuteranopia (no green cones)#6F9FFC0.050
Tritanopia (no blue cones)#78ACBF0.126
Achromatopsia (no color)#A2A2A20.147

Harmonies

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

Complementary

The opposite hue (180°).

  • #9798FE

    #9798FE

    oklch(72.2% 0.147 281.7)

  • #B9A716

    #B9A716

    oklch(72.2% 0.146 101.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #9798FE

    #9798FE

    oklch(72.2% 0.147 281.7)

  • #59A9FE

    #59A9FE

    oklch(72.2% 0.147 251.8)

  • #C388E7

    #C388E7

    oklch(72.1% 0.147 311.7)

Open the analogous palette in the generator

Split complementary

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

  • #9798FE

    #9798FE

    oklch(72.2% 0.147 281.7)

  • #DD9420

    #DD9420

    oklch(72.3% 0.146 72)

  • #83B850

    #83B850

    oklch(72.3% 0.147 131.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #9798FE

    #9798FE

    oklch(72.2% 0.147 281.7)

  • #F08358

    #F08358

    oklch(72.2% 0.146 41.7)

  • #2FC188

    #2FC188

    oklch(72.2% 0.147 161.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #9798FE

    #9798FE

    oklch(72.2% 0.147 281.7)

  • #F27B8D

    #F27B8D

    oklch(72.3% 0.146 11.9)

  • #B9A716

    #B9A716

    oklch(72.2% 0.146 101.3)

  • #00BDB9

    #00BDB9

    oklch(72.1% 0.124 192.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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