#5F2184#5F2184

#5F2184 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.3% C 0.159 H 309.5°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#5F2184
RGBrgb(95, 33, 132)
HSLhsl(278, 60%, 32%)
HSVhsv(278, 75%, 52%)
CMYKcmyk(28%, 75%, 0%, 48.2%)
CIE-LABlab(27.26, 44.98, -43.36)
CIE-LCHlch(27.26, 62.47, 316.05°)
OKLaboklab(39.3% 0.1012 -0.1229)
OKLCHoklch(39.3% 0.159 309.5)
XYZxyz(9.4272, 5.1867, 22.3298)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2184 #468421
analogous
#2E2184 #5F2184 #842177
triadic
#5F2184 #845F21 #21845F
tetradic
#5F2184 #842E21 #468421 #217784
square
#5F2184 #842E21 #468421 #217784
split-complementary
#5F2184 #778421 #21842E
monochromatic
#190922 #3C1553 #5F2184 #822DB5 #A14DD2

Accessibility & contrast

On white

10.31
#5F2184 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#5F2184 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2184
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2184#FFFFFF#000000##FFFFFF
##5F21841.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E87
Deuteranopia (green-blind)
#084182
Tritanopia (blue-blind)
#5A3850
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5f2184;
/* rgb */ color: rgb(95, 33, 132);
/* oklch */ color: oklch(39.3% 0.159 309.5);
Tailwind
colors: {
  custom: {
    50: '#9063a8',
    500: '#5f2184',
    950: '#000000',
  },
}
SCSS
$custom: #5f2184;
$custom-light: #9063a8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2184",
  "rgb": {
    "r": 95,
    "g": 33,
    "b": 132
  },
  "hsl": {
    "h": 277.576,
    "s": 60,
    "l": 32.353
  },
  "oklch": {
    "l": 0.39297,
    "c": 0.15917,
    "h": 309.5
  },
  "luminance": 0.05187
}

Semantic roles & 50–950 ramp

primary
#5F2184
secondary
#73B64B
accent
#E34580
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5F2184

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

Preview Lab → · Contrast checker → · Palette generator →

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