#5F21BC#5F21BC

#5F21BC is a dark, highly saturated violet. Relative luminance 0.072; OKLCH L 44.2% C 0.217 H 293.2°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#5F21BC
RGBrgb(95, 33, 188)
HSLhsl(264, 70%, 43%)
HSVhsv(264, 82%, 74%)
CMYKcmyk(49.5%, 82.4%, 0%, 26.3%)
CIE-LABlab(32.15, 58.63, -69.40)
CIE-LCHlch(32.15, 90.85, 310.19°)
OKLaboklab(44.21% 0.0856 -0.1993)
OKLCHoklch(44.21% 0.217 293.2)
XYZxyz(14.3377, 7.1510, 48.1920)
Luminance0.0715 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F21BC #7EBC21
analogous
#2130BC #5F21BC #AC21BC
triadic
#5F21BC #BC5F21 #21BC5F
tetradic
#5F21BC #BC2130 #7EBC21 #21BCAC
square
#5F21BC #BC2130 #7EBC21 #21BCAC
split-complementary
#5F21BC #BCAC21 #30BC21
monochromatic
#2A0F54 #451888 #5F21BC #7D3DDD #A071E6

Accessibility & contrast

On white

8.64
#5F21BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#5F21BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F21BC
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F21BC#FFFFFF#000000##FFFFFF
##5F21BC1.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DC0
Deuteranopia (green-blind)
#0049B9
Tritanopia (blue-blind)
#415071
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5f21bc;
/* rgb */ color: rgb(95, 33, 188);
/* oklch */ color: oklch(44.2% 0.217 293.2);
Tailwind
colors: {
  custom: {
    50: '#9666d1',
    500: '#5f21bc',
    950: '#000000',
  },
}
SCSS
$custom: #5f21bc;
$custom-light: #9666d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f21bc",
  "rgb": {
    "r": 95,
    "g": 33,
    "b": 188
  },
  "hsl": {
    "h": 264,
    "s": 70.136,
    "l": 43.333
  },
  "oklch": {
    "l": 0.44213,
    "c": 0.2169,
    "h": 293.2
  },
  "luminance": 0.07151
}

Semantic roles & 50–950 ramp

primary
#5F21BC
secondary
#A6CD6C
accent
#ED3BA6
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0F0614
muted
#7E7A83

Preview Lab

Preview with #5F21BC

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

Preview Lab → · Contrast checker → · Palette generator →

#5F21BC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva