#5F2159#5F2159

#5F2159 is a dark, moderate purple. Relative luminance 0.042; OKLCH L 36.4% C 0.116 H 331.7°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#5F2159
RGBrgb(95, 33, 89)
HSLhsl(306, 48%, 25%)
HSVhsv(306, 65%, 37%)
CMYKcmyk(0%, 65.3%, 6.3%, 62.7%)
CIE-LABlab(24.46, 35.86, -20.17)
CIE-LCHlch(24.46, 41.14, 330.65°)
OKLaboklab(36.38% 0.1024 -0.0552)
OKLCHoklch(36.38% 0.116 331.7)
XYZxyz(7.0663, 4.2424, 9.8959)
Luminance0.0424 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2159 #215F27
analogous
#46215F #5F2159 #5F213A
triadic
#5F2159 #595F21 #21595F
tetradic
#5F2159 #5F4621 #215F27 #213A5F
square
#5F2159 #5F4621 #215F27 #213A5F
split-complementary
#5F2159 #3A5F21 #215F46
monochromatic
#170815 #32112E #5F2159 #8C3184 #BA41AE

Accessibility & contrast

On white

11.36
#5F2159 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#5F2159 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2159
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2159#FFFFFF#000000##FFFFFF
##5F21591.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E355B
Deuteranopia (green-blind)
#323D57
Tritanopia (blue-blind)
#632739
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5f2159;
/* rgb */ color: rgb(95, 33, 89);
/* oklch */ color: oklch(36.4% 0.116 331.7);
Tailwind
colors: {
  custom: {
    50: '#8f6188',
    500: '#5f2159',
    950: '#000000',
  },
}
SCSS
$custom: #5f2159;
$custom-light: #8f6188;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2159",
  "rgb": {
    "r": 95,
    "g": 33,
    "b": 89
  },
  "hsl": {
    "h": 305.806,
    "s": 48.438,
    "l": 25.098
  },
  "oklch": {
    "l": 0.36384,
    "c": 0.11635,
    "h": 331.7
  },
  "luminance": 0.04242
}

Semantic roles & 50–950 ramp

primary
#5F2159
secondary
#499350
accent
#D85D50
background
#F8F5F8
surface
#F0EAEF
border
#CBC6CA
text
#0D050B
muted
#7D797C

Preview Lab

Preview with #5F2159

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

Preview Lab → · Contrast checker → · Palette generator →

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