#5F1357#5F1357

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

Color values

HEX#5F1357
RGBrgb(95, 19, 87)
HSLhsl(306, 67%, 22%)
HSVhsv(306, 80%, 37%)
CMYKcmyk(0%, 80%, 8.4%, 62.7%)
CIE-LABlab(22.26, 41.36, -22.29)
CIE-LCHlch(22.26, 46.99, 331.67°)
OKLaboklab(34.76% 0.1192 -0.0612)
OKLCHoklch(34.76% 0.134 332.8)
XYZxyz(6.6725, 3.5873, 9.3560)
Luminance0.0359 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1357 #135F1B
analogous
#41135F #5F1357 #5F1331
triadic
#5F1357 #575F13 #13575F
tetradic
#5F1357 #5F4113 #135F1B #13315F
square
#5F1357 #5F4113 #135F1B #13315F
split-complementary
#5F1357 #315F13 #135F41
monochromatic
#1A0517 #2C0928 #5F1357 #921D86 #C527B4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F1357#FFFFFF#000000##FFFFFF
##5F13571.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)
#0F2E59
Deuteranopia (green-blind)
#2D3955
Tritanopia (blue-blind)
#641B34
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5f1357;
/* rgb */ color: rgb(95, 19, 87);
/* oklch */ color: oklch(34.8% 0.134 332.8);
Tailwind
colors: {
  custom: {
    50: '#8f5a86',
    500: '#5f1357',
    950: '#000000',
  },
}
SCSS
$custom: #5f1357;
$custom-light: #8f5a86;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1357",
  "rgb": {
    "r": 95,
    "g": 19,
    "b": 87
  },
  "hsl": {
    "h": 306.316,
    "s": 66.667,
    "l": 22.353
  },
  "oklch": {
    "l": 0.34756,
    "c": 0.13405,
    "h": 332.8
  },
  "luminance": 0.03587
}

Semantic roles & 50–950 ramp

primary
#5F1357
secondary
#379741
accent
#EA503E
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F1357

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

Preview Lab → · Contrast checker → · Palette generator →

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