#5F1259#5F1259

#5F1259 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.8% C 0.137 H 331.6°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#5F1259
RGBrgb(95, 18, 89)
HSLhsl(305, 68%, 22%)
HSVhsv(305, 81%, 37%)
CMYKcmyk(0%, 81.1%, 6.3%, 62.7%)
CIE-LABlab(22.26, 42.04, -23.63)
CIE-LCHlch(22.26, 48.23, 330.66°)
OKLaboklab(34.79% 0.1203 -0.0651)
OKLCHoklch(34.79% 0.137 331.6)
XYZxyz(6.7388, 3.5873, 9.7868)
Luminance0.0359 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1259 #125F18
analogous
#3F125F #5F1259 #5F1233
triadic
#5F1259 #595F12 #12595F
tetradic
#5F1259 #5F3F12 #125F18 #12335F
square
#5F1259 #5F3F12 #125F18 #12335F
split-complementary
#5F1259 #335F12 #125F3F
monochromatic
#1A0518 #2C0829 #5F1259 #921C89 #C625B9

Accessibility & contrast

On white

12.23
#5F1259 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#5F1259 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1259
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1259#FFFFFF#000000##FFFFFF
##5F12591.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2E5B
Deuteranopia (green-blind)
#2B3957
Tritanopia (blue-blind)
#631C35
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5f1259;
/* rgb */ color: rgb(95, 18, 89);
/* oklch */ color: oklch(34.8% 0.137 331.6);
Tailwind
colors: {
  custom: {
    50: '#8f5a88',
    500: '#5f1259',
    950: '#000000',
  },
}
SCSS
$custom: #5f1259;
$custom-light: #8f5a88;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1259",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 89
  },
  "hsl": {
    "h": 304.675,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.34794,
    "c": 0.13678,
    "h": 331.6
  },
  "luminance": 0.03587
}

Semantic roles & 50–950 ramp

primary
#5F1259
secondary
#36973D
accent
#EB4A3D
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F1259

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

Preview Lab → · Contrast checker → · Palette generator →

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