#9798ED
Closest named color: Periwinkle Blue (#8F99FB). oklch(71.3% 0.123 282.3), rgb(151, 152, 237).
Aa
Black text reads best on this color (8.03:1).
About this color
#9798ED is a medium-light, moderately saturated purple. In OKLCH its lightness is 71%, its chroma 0.123 and its hue 282°. Its hue sits on the cool side of the wheel. The nearest named color is Periwinkle Blue (#8F99FB), ΔE 0.022 away. Black text reads best on it, at 8.03:1.
| Hue family | Purples |
| Lightness | medium-light (71%) |
| Chroma | moderately saturated (0.123) |
| Temperature | cool |
| Nearest name | Periwinkle Blue (#8F99FB) |
| Black text | 8.03:1 |
| White text | 2.61:1 |
Values
| HEX | #9798ED |
| RGB | rgb(151, 152, 237) |
| HSL | hsl(239, 70%, 76%) |
| OKLCH | oklch(71.3% 0.123 282.3) |
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.
| Pair | WCAG 2 | Result | APCA | APCA guidance |
|---|---|---|---|---|
| White text on #9798ED | 2.61:1 | Fails | Lc -56.1 | Large or bold text, headings |
| Black text on #9798ED | 8.03:1 | AAA | Lc 53.1 | Large or bold text, headings |
| #9798ED text on white | 2.61:1 | Fails | Lc 51.0 | Large or bold text, headings |
| #9798ED text on black | 8.03:1 | AAA | Lc -51.0 | 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.
-
Step 50
50
#F4F5FC
oklch(97.1% 0.009 279.7)
-
Step 100
100
#E7E8F9
oklch(93.5% 0.023 283.3)
-
Step 200
200
#D4D6F5
oklch(88.4% 0.043 282.6)
-
Step 300
300
#B8BBF2
oklch(80.9% 0.077 282.1)
-
Step 400
400 (this color)
#9798ED
oklch(71.3% 0.123 282.3)
-
Step 500
500
#7D7AE5
oklch(63.2% 0.157 282.2)
-
Step 600
600
#6860D3
oklch(55.7% 0.171 282.4)
-
Step 700
700
#574FB6
oklch(49.2% 0.158 282.4)
-
Step 800
800
#474194
oklch(42.8% 0.132 282.5)
-
Step 900
900
#3B3876
oklch(37.8% 0.103 282.5)
-
Step 950
950
#222145
oklch(26.9% 0.066 282.3)
#9798ED 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.
| Vision | Seen as | Shift (ΔE) |
|---|---|---|
| Protanopia (no red cones) | #7DA3F0 | 0.040 |
| Deuteranopia (no green cones) | #799DEB | 0.039 |
| Tritanopia (no blue cones) | #7FA8B7 | 0.107 |
| Achromatopsia (no color) | #A0A0A0 | 0.123 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #9798ED
#9798ED
oklch(71.3% 0.123 282.3)
- #B2A53F
#B2A53F
oklch(71.4% 0.123 102)
Analogous
Neighbouring hues, 30° either side.
Split complementary
The two hues beside the complement (150° and 210°).
Triadic
Three hues spaced 120° apart.
Palettes with this color
Curated palettes that contain a color within ΔE 0.04 (OKLab) of #9798ED, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Periwinkle Blue #8F99FB ΔE 0.022
- Perrywinkle #8F8CE7 ΔE 0.034
- Lavender Blue #8B88F8 ΔE 0.051
- Pale Purple #B790D4 ΔE 0.057
- Cornflower Blue #6495ED ΔE 0.064
- Periwinkle #8E82FE ΔE 0.067
- Liliac #C48EFD ΔE 0.075
- Baby Purple #CA9BF7 ΔE 0.078
Use #9798ED 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.