#5F218B#5F218B

#5F218B is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.9% C 0.166 H 306.9°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#5F218B
RGBrgb(95, 33, 139)
HSLhsl(275, 62%, 34%)
HSVhsv(275, 76%, 55%)
CMYKcmyk(31.7%, 76.3%, 0%, 45.5%)
CIE-LABlab(27.80, 46.62, -46.84)
CIE-LCHlch(27.80, 66.09, 314.86°)
OKLaboklab(39.85% 0.0999 -0.1331)
OKLCHoklch(39.85% 0.166 306.9)
XYZxyz(9.9224, 5.3848, 24.9377)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F218B #4D8B21
analogous
#2A218B #5F218B #8B2182
triadic
#5F218B #8B5F21 #218B5F
tetradic
#5F218B #8B2A21 #4D8B21 #21828B
square
#5F218B #8B2A21 #4D8B21 #21828B
split-complementary
#5F218B #828B21 #218B2A
monochromatic
#1B0A28 #3D155A #5F218B #812DBC #9E51D6

Accessibility & contrast

On white

10.11
#5F218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5F218B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F218B
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F218B#FFFFFF#000000##FFFFFF
##5F218B1.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#004289
Tritanopia (blue-blind)
#573B54
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5f218b;
/* rgb */ color: rgb(95, 33, 139);
/* oklch */ color: oklch(39.9% 0.166 306.9);
Tailwind
colors: {
  custom: {
    50: '#9163ae',
    500: '#5f218b',
    950: '#000000',
  },
}
SCSS
$custom: #5f218b;
$custom-light: #9163ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5f218b",
  "rgb": {
    "r": 95,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 275.094,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39853,
    "c": 0.16641,
    "h": 306.9
  },
  "luminance": 0.05385
}

Semantic roles & 50–950 ramp

primary
#5F218B
secondary
#7BB94F
accent
#E54386
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5F218B

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

Preview Lab → · Contrast checker → · Palette generator →

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