#5F135D#5F135D

#5F135D is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.1% C 0.139 H 329.2°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#5F135D
RGBrgb(95, 19, 93)
HSLhsl(302, 67%, 22%)
HSVhsv(302, 80%, 37%)
CMYKcmyk(0%, 80%, 2.1%, 62.7%)
CIE-LABlab(22.62, 42.41, -25.72)
CIE-LCHlch(22.62, 49.60, 328.77°)
OKLaboklab(35.13% 0.1194 -0.0711)
OKLCHoklch(35.13% 0.139 329.2)
XYZxyz(6.9279, 3.6895, 10.7011)
Luminance0.0369 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F135D #135F15
analogous
#3B135F #5F135D #5F1337
triadic
#5F135D #5D5F13 #135D5F
tetradic
#5F135D #5F3B13 #135F15 #13375F
square
#5F135D #5F3B13 #135F15 #13375F
split-complementary
#5F135D #375F13 #135F3B
monochromatic
#1A0519 #2C092B #5F135D #921D8F #C527C1

Accessibility & contrast

On white

12.08
#5F135D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#5F135D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F135D
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F135D#FFFFFF#000000##FFFFFF
##5F135D1.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06305F
Deuteranopia (green-blind)
#2A3A5B
Tritanopia (blue-blind)
#631E37
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5f135d;
/* rgb */ color: rgb(95, 19, 93);
/* oklch */ color: oklch(35.1% 0.139 329.2);
Tailwind
colors: {
  custom: {
    50: '#8f5b8b',
    500: '#5f135d',
    950: '#000000',
  },
}
SCSS
$custom: #5f135d;
$custom-light: #8f5b8b;
$custom-dark: #000000;
JSON
{
  "hex": "#5f135d",
  "rgb": {
    "r": 95,
    "g": 19,
    "b": 93
  },
  "hsl": {
    "h": 301.579,
    "s": 66.667,
    "l": 22.353
  },
  "oklch": {
    "l": 0.3513,
    "c": 0.13897,
    "h": 329.2
  },
  "luminance": 0.03689
}

Semantic roles & 50–950 ramp

primary
#5F135D
secondary
#379739
accent
#EA433E
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5F135D

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

Preview Lab → · Contrast checker → · Palette generator →

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