#5F2196#5F2196

#5F2196 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.8% C 0.178 H 303.2°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#5F2196
RGBrgb(95, 33, 150)
HSLhsl(272, 64%, 36%)
HSVhsv(272, 78%, 59%)
CMYKcmyk(36.7%, 78%, 0%, 41.2%)
CIE-LABlab(28.70, 49.25, -52.18)
CIE-LCHlch(28.70, 71.75, 313.35°)
OKLaboklab(40.77% 0.0973 -0.1488)
OKLCHoklch(40.77% 0.178 303.2)
XYZxyz(10.7669, 5.7226, 29.3856)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2196 #589621
analogous
#252196 #5F2196 #962192
triadic
#5F2196 #965F21 #21965F
tetradic
#5F2196 #962521 #589621 #219296
square
#5F2196 #962521 #589621 #219296
split-complementary
#5F2196 #929621 #219625
monochromatic
#1F0B32 #3F1664 #5F2196 #7F2CC8 #9D57DA

Accessibility & contrast

On white

9.79
#5F2196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5F2196 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2196
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2196#FFFFFF#000000##FFFFFF
##5F21961.009.792.149.79
#FFFFFF9.791.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004399
Deuteranopia (green-blind)
#004394
Tritanopia (blue-blind)
#543F5B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5f2196;
/* rgb */ color: rgb(95, 33, 150);
/* oklch */ color: oklch(40.8% 0.178 303.2);
Tailwind
colors: {
  custom: {
    50: '#9264b6',
    500: '#5f2196',
    950: '#000000',
  },
}
SCSS
$custom: #5f2196;
$custom-light: #9264b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2196",
  "rgb": {
    "r": 95,
    "g": 33,
    "b": 150
  },
  "hsl": {
    "h": 271.795,
    "s": 63.934,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40765,
    "c": 0.1778,
    "h": 303.2
  },
  "luminance": 0.05723
}

Semantic roles & 50–950 ramp

primary
#5F2196
secondary
#86BE55
accent
#E7418F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F2196

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

Preview Lab → · Contrast checker → · Palette generator →

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