#A240B7#A240B7
#A240B7 is a mid, vivid purple. Relative luminance 0.148; OKLCH L 55.3% C 0.195 H 320.1°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).
Color values
| HEX | #A240B7 |
|---|---|
| RGB | rgb(162, 64, 183) |
| HSL | hsl(289, 48%, 48%) |
| HSV | hsv(289, 65%, 72%) |
| CMYK | cmyk(11.5%, 65%, 0%, 28.2%) |
| CIE-LAB | lab(45.32, 57.26, -44.69) |
| CIE-LCH | lch(45.32, 72.64, 322.03°) |
| OKLab | oklab(55.33% 0.1494 -0.1248) |
| OKLCH | oklch(55.33% 0.195 320.1) |
| XYZ | xyz(25.2799, 14.7683, 46.3095) |
| Luminance | 0.1477 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 2.05
Medium Purple
#9E43A2
ΔE00 3.79
Barney
#AC1DB8
ΔE00 4.19
Ugly Purple
#A442A0
ΔE00 4.58
Darkorchid
#9932CC
ΔE00 5.02
Vibrant Purple
#AD03DE
ΔE00 6.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A240B7 #55B740
analogous
#6640B7 #A240B7 #B74090
triadic
#A240B7 #B7A240 #40B7A2
tetradic
#A240B7 #B76640 #55B740 #4090B7
square
#A240B7 #B76640 #55B740 #4090B7
split-complementary
#A240B7 #90B740 #40B766
monochromatic
#52205C #7A308A #A240B7 #BA69CB #CF97DB
Accessibility & contrast
On white
5.31
#A240B7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.95
#A240B7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A240B7
5.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A240B7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A240B7 | 1.00 | 5.31 | 3.95 | 5.31 |
| #FFFFFF | 5.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.95 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1D64BB
Deuteranopia (green-blind)
#4A6FB4
Tritanopia (blue-blind)
#A35476
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #a240b7; /* rgb */ color: rgb(162, 64, 183); /* oklch */ color: oklch(55.3% 0.195 320.1);
Tailwind
colors: {
custom: {
50: '#c17ccd',
500: '#a240b7',
950: '#000000',
},
}SCSS
$custom: #a240b7; $custom-light: #c17ccd; $custom-dark: #000000;
JSON
{
"hex": "#a240b7",
"rgb": {
"r": 162,
"g": 64,
"b": 183
},
"hsl": {
"h": 289.412,
"s": 48.178,
"l": 48.431
},
"oklch": {
"l": 0.55329,
"c": 0.1947,
"h": 320.1
},
"luminance": 0.14767
}Semantic roles & 50–950 ramp
primary
#A240B7
secondary
#97C68D
accent
#D85068
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A13
muted
#827C82