#5F21AA#5F21AA

#5F21AA is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.5% C 0.198 H 297.5°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#5F21AA
RGBrgb(95, 33, 170)
HSLhsl(267, 67%, 40%)
HSVhsv(267, 81%, 67%)
CMYKcmyk(44.1%, 80.6%, 0%, 33.3%)
CIE-LABlab(30.45, 54.15, -61.46)
CIE-LCHlch(30.45, 81.91, 311.38°)
OKLaboklab(42.53% 0.0916 -0.176)
OKLCHoklch(42.53% 0.198 297.5)
XYZxyz(12.5170, 6.4226, 38.6026)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F21AA #6CAA21
analogous
#2128AA #5F21AA #A321AA
triadic
#5F21AA #AA5F21 #21AA5F
tetradic
#5F21AA #AA2128 #6CAA21 #21AAA3
square
#5F21AA #AA2128 #6CAA21 #21AAA3
split-complementary
#5F21AA #AAA321 #28AA21
monochromatic
#260D43 #421777 #5F21AA #7C31D7 #9D64E1

Accessibility & contrast

On white

9.19
#5F21AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#5F21AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F21AA
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F21AA#FFFFFF#000000##FFFFFF
##5F21AA1.009.192.289.19
#FFFFFF9.191.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AE
Deuteranopia (green-blind)
#0046A7
Tritanopia (blue-blind)
#4B4866
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5f21aa;
/* rgb */ color: rgb(95, 33, 170);
/* oklch */ color: oklch(42.5% 0.198 297.5);
Tailwind
colors: {
  custom: {
    50: '#9465c4',
    500: '#5f21aa',
    950: '#000000',
  },
}
SCSS
$custom: #5f21aa;
$custom-light: #9465c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f21aa",
  "rgb": {
    "r": 95,
    "g": 33,
    "b": 170
  },
  "hsl": {
    "h": 267.153,
    "s": 67.488,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42528,
    "c": 0.19845,
    "h": 297.5
  },
  "luminance": 0.06423
}

Semantic roles & 50–950 ramp

primary
#5F21AA
secondary
#98C661
accent
#EA3D9C
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5F21AA

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

Preview Lab → · Contrast checker → · Palette generator →

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