#5F2397#5F2397

#5F2397 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.1% C 0.177 H 302.6°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#5F2397
RGBrgb(95, 35, 151)
HSLhsl(271, 62%, 36%)
HSVhsv(271, 77%, 59%)
CMYKcmyk(37.1%, 76.8%, 0%, 40.8%)
CIE-LABlab(29.08, 48.65, -52.17)
CIE-LCHlch(29.08, 71.33, 313.00°)
OKLaboklab(41.06% 0.0953 -0.1488)
OKLCHoklch(41.06% 0.177 302.6)
XYZxyz(10.9049, 5.8693, 29.8305)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2397 #5B9723
analogous
#252397 #5F2397 #972395
triadic
#5F2397 #975F23 #23975F
tetradic
#5F2397 #972523 #5B9723 #239597
square
#5F2397 #972523 #5B9723 #239597
split-complementary
#5F2397 #959723 #239725
monochromatic
#200C34 #401765 #5F2397 #7E2FC9 #9C5BD9

Accessibility & contrast

On white

9.66
#5F2397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F2397
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2397#FFFFFF#000000##FFFFFF
##5F23971.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#004495
Tritanopia (blue-blind)
#53415C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5f2397;
/* rgb */ color: rgb(95, 35, 151);
/* oklch */ color: oklch(41.1% 0.177 302.6);
Tailwind
colors: {
  custom: {
    50: '#9265b6',
    500: '#5f2397',
    950: '#000000',
  },
}
SCSS
$custom: #5f2397;
$custom-light: #9265b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2397",
  "rgb": {
    "r": 95,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 271.034,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.41057,
    "c": 0.17669,
    "h": 302.6
  },
  "luminance": 0.05869
}

Semantic roles & 50–950 ramp

primary
#5F2397
secondary
#89BE58
accent
#E54291
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F2397

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

Preview Lab → · Contrast checker → · Palette generator →

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