#5F2396#5F2396

#5F2396 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.0% C 0.176 H 302.9°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#5F2396
RGBrgb(95, 35, 150)
HSLhsl(271, 62%, 36%)
HSVhsv(271, 77%, 59%)
CMYKcmyk(36.7%, 76.7%, 0%, 41.2%)
CIE-LABlab(29.00, 48.40, -51.69)
CIE-LCHlch(29.00, 70.82, 313.12°)
OKLaboklab(40.97% 0.0955 -0.1474)
OKLCHoklch(40.97% 0.176 302.9)
XYZxyz(10.8241, 5.8370, 29.4046)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2396 #5A9623
analogous
#252396 #5F2396 #962394
triadic
#5F2396 #965F23 #23965F
tetradic
#5F2396 #962523 #5A9623 #239496
square
#5F2396 #962523 #5A9623 #239496
split-complementary
#5F2396 #949623 #239625
monochromatic
#200C33 #401764 #5F2396 #7E2FC8 #9C5BD9

Accessibility & contrast

On white

9.69
#5F2396 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5F2396 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2396
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2396#FFFFFF#000000##FFFFFF
##5F23961.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004399
Deuteranopia (green-blind)
#004494
Tritanopia (blue-blind)
#54405B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5f2396;
/* rgb */ color: rgb(95, 35, 150);
/* oklch */ color: oklch(41.0% 0.176 302.9);
Tailwind
colors: {
  custom: {
    50: '#9265b6',
    500: '#5f2396',
    950: '#000000',
  },
}
SCSS
$custom: #5f2396;
$custom-light: #9265b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2396",
  "rgb": {
    "r": 95,
    "g": 35,
    "b": 150
  },
  "hsl": {
    "h": 271.304,
    "s": 62.162,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40973,
    "c": 0.17564,
    "h": 302.9
  },
  "luminance": 0.05837
}

Semantic roles & 50–950 ramp

primary
#5F2396
secondary
#88BD58
accent
#E54390
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F2396

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

Preview Lab → · Contrast checker → · Palette generator →

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