#797BD1
Closest named color: Soft Blue (#6488EA). oklch(61.9% 0.128 280.9), rgb(121, 123, 209).
Aa
Black text reads best on this color (5.56:1).
About this color
#797BD1 is a medium-dark, moderately saturated purple. In OKLCH its lightness is 62%, its chroma 0.128 and its hue 281°. Its hue sits on the cool side of the wheel. The nearest named color is Soft Blue (#6488EA), ΔE 0.049 away. Black text reads best on it, at 5.56:1.
| Hue family | Purples |
| Lightness | medium-dark (62%) |
| Chroma | moderately saturated (0.128) |
| Temperature | cool |
| Nearest name | Soft Blue (#6488EA) |
| Black text | 5.56:1 |
| White text | 3.77:1 |
Values
| HEX | #797BD1 |
| RGB | rgb(121, 123, 209) |
| HSL | hsl(239, 49%, 65%) |
| OKLCH | oklch(61.9% 0.128 280.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.
| Pair | WCAG 2 | Result | APCA | APCA guidance |
|---|---|---|---|---|
| White text on #797BD1 | 3.77:1 | AA large text | Lc -70.7 | Content text, not long reading |
| Black text on #797BD1 | 5.56:1 | AA | Lc 38.9 | Non-text elements, placeholder text |
| #797BD1 text on white | 3.77:1 | AA large text | Lc 65.2 | Content text, not long reading |
| #797BD1 text on black | 5.56:1 | AA | Lc -36.5 | 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.
-
Step 50
50
#F4F5FB
oklch(97.1% 0.008 278.6)
-
Step 100
100
#E7E9F6
oklch(93.6% 0.018 279.1)
-
Step 200
200
#D4D7F0
oklch(88.5% 0.034 280.2)
-
Step 300
300
#B9BDE9
oklch(81% 0.062 280.8)
-
Step 400
400
#9599DE
oklch(70.6% 0.101 280.9)
-
Step 500
500 (this color)
#797BD1
oklch(61.9% 0.128 280.9)
-
Step 600
600
#6666C2
oklch(55.5% 0.14 280.8)
-
Step 700
700
#5555A8
oklch(49.2% 0.13 280.5)
-
Step 800
800
#464688
oklch(42.8% 0.107 280.9)
-
Step 900
900
#3A3B6D
oklch(37.7% 0.084 280.7)
-
Step 950
950
#222340
oklch(27.1% 0.053 280.7)
#797BD1 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) | #5C87D4 | 0.044 |
| Deuteranopia (no green cones) | #5780CF | 0.043 |
| Tritanopia (no blue cones) | #5E8C9C | 0.111 |
| Achromatopsia (no color) | #838383 | 0.129 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #797BD1
#797BD1
oklch(61.9% 0.128 280.9)
- #978703
#978703
oklch(61.9% 0.128 100.9)
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 #797BD1, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Soft Blue #6488EA ΔE 0.049
- Medium Purple #9370DB ΔE 0.050
- Deep Lilac #966EBD ΔE 0.056
- Cornflower #6A79F7 ΔE 0.061
- Perrywinkle #8F8CE7 ΔE 0.062
- Faded Blue #658CBB ΔE 0.067
- Medium Slate Blue #7B68EE ΔE 0.068
- Lavender Blue #8B88F8 ΔE 0.069
Use #797BD1 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.