#9021CA#9021CA

#9021CA is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 51.5% C 0.238 H 309.7°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#9021CA
RGBrgb(144, 33, 202)
HSLhsl(279, 72%, 46%)
HSVhsv(279, 84%, 79%)
CMYKcmyk(28.7%, 83.7%, 0%, 20.8%)
CIE-LABlab(40.05, 68.64, -64.40)
CIE-LCHlch(40.05, 94.12, 316.82°)
OKLaboklab(51.47% 0.1521 -0.183)
OKLCHoklch(51.47% 0.238 309.7)
XYZxyz(22.7040, 11.2818, 56.8472)
Luminance0.1128 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9021CA #5BCA21
analogous
#3B21CA #9021CA #CA21AF
triadic
#9021CA #CA9021 #21CA90
tetradic
#9021CA #CA3B21 #5BCA21 #21AFCA
square
#9021CA #CA3B21 #5BCA21 #21AFCA
split-complementary
#9021CA #AFCA21 #21CA3B
monochromatic
#451061 #6A1895 #9021CA #AC47E1 #C47CEA

Accessibility & contrast

On white

6.45
#9021CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#9021CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9021CA
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9021CA#FFFFFF#000000##FFFFFF
##9021CA1.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACE
Deuteranopia (green-blind)
#0060C7
Tritanopia (blue-blind)
#875079
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9021ca;
/* rgb */ color: rgb(144, 33, 202);
/* oklch */ color: oklch(51.5% 0.238 309.7);
Tailwind
colors: {
  custom: {
    50: '#b66ddb',
    500: '#9021ca',
    950: '#000000',
  },
}
SCSS
$custom: #9021ca;
$custom-light: #b66ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#9021ca",
  "rgb": {
    "r": 144,
    "g": 33,
    "b": 202
  },
  "hsl": {
    "h": 279.408,
    "s": 71.915,
    "l": 46.078
  },
  "oklch": {
    "l": 0.51466,
    "c": 0.23795,
    "h": 309.7
  },
  "luminance": 0.11281
}

Semantic roles & 50–950 ramp

primary
#9021CA
secondary
#95D275
accent
#EF3977
background
#FBF7FD
surface
#F7EDFB
border
#D0C8D4
text
#120815
muted
#817B83

Preview Lab

Preview with #9021CA

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#9021CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva