#731F99#731F99
#731F99 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.5% C 0.188 H 312.3°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).
Color values
| HEX | #731F99 |
|---|---|
| RGB | rgb(115, 31, 153) |
| HSL | hsl(281, 66%, 36%) |
| HSV | hsv(281, 80%, 60%) |
| CMYK | cmyk(24.8%, 79.7%, 0%, 40%) |
| CIE-LAB | lab(31.64, 54.31, -49.11) |
| CIE-LCH | lch(31.64, 73.22, 317.88°) |
| OKLab | oklab(43.51% 0.1267 -0.139) |
| OKLCH | oklch(43.51% 0.188 312.3) |
| XYZ | xyz(13.3089, 6.9251, 30.7664) |
| Luminance | 0.0693 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 2.05
Rebeccapurple
#663399
ΔE00 4.22
Darkmagenta
#8B008B
ΔE00 6.07
Purple
#800080
ΔE00 6.20
Darkish Purple
#751973
ΔE00 7.48
Indigo
#4B0082
ΔE00 8.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#731F99 #45991F
analogous
#361F99 #731F99 #991F82
triadic
#731F99 #99731F #1F9973
tetradic
#731F99 #99361F #45991F #1F8299
square
#731F99 #99361F #45991F #1F8299
split-complementary
#731F99 #82991F #1F9936
monochromatic
#260A33 #4D1566 #731F99 #9929CC #B356DD
Accessibility & contrast
On white
8.81
#731F99 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.39
#731F99 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #731F99
8.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##731F99 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##731F99 | 1.00 | 8.81 | 2.39 | 8.81 |
| #FFFFFF | 8.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00469C
Deuteranopia (green-blind)
#074C96
Tritanopia (blue-blind)
#6E3D5C
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #731f99; /* rgb */ color: rgb(115, 31, 153); /* oklch */ color: oklch(43.5% 0.188 312.3);
Tailwind
colors: {
custom: {
50: '#a065b8',
500: '#731f99',
950: '#000000',
},
}SCSS
$custom: #731f99; $custom-light: #a065b8; $custom-dark: #000000;
JSON
{
"hex": "#731f99",
"rgb": {
"r": 115,
"g": 31,
"b": 153
},
"hsl": {
"h": 281.311,
"s": 66.304,
"l": 36.078
},
"oklch": {
"l": 0.43514,
"c": 0.1881,
"h": 312.3
},
"luminance": 0.06925
}Semantic roles & 50–950 ramp
primary
#731F99
secondary
#75C054
accent
#E93F74
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#0F0611
muted
#7F7A80