#5F135E#5F135E

#5F135E is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.2% C 0.140 H 328.6°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#5F135E
RGBrgb(95, 19, 94)
HSLhsl(301, 67%, 22%)
HSVhsv(301, 80%, 37%)
CMYKcmyk(0%, 80%, 1.1%, 62.7%)
CIE-LABlab(22.68, 42.59, -26.28)
CIE-LCHlch(22.68, 50.04, 328.32°)
OKLaboklab(35.19% 0.1194 -0.0728)
OKLCHoklch(35.19% 0.14 328.6)
XYZxyz(6.9725, 3.7073, 10.9359)
Luminance0.0371 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F135E #135F14
analogous
#3A135F #5F135E #5F1338
triadic
#5F135E #5E5F13 #135E5F
tetradic
#5F135E #5F3A13 #135F14 #13385F
square
#5F135E #5F3A13 #135F14 #13385F
split-complementary
#5F135E #385F13 #135F3A
monochromatic
#1A0519 #2C092C #5F135E #921D90 #C527C3

Accessibility & contrast

On white

12.06
#5F135E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F135E
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F135E#FFFFFF#000000##FFFFFF
##5F135E1.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#043060
Deuteranopia (green-blind)
#293A5C
Tritanopia (blue-blind)
#621F38
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5f135e;
/* rgb */ color: rgb(95, 19, 94);
/* oklch */ color: oklch(35.2% 0.140 328.6);
Tailwind
colors: {
  custom: {
    50: '#8f5b8c',
    500: '#5f135e',
    950: '#000000',
  },
}
SCSS
$custom: #5f135e;
$custom-light: #8f5b8c;
$custom-dark: #000000;
JSON
{
  "hex": "#5f135e",
  "rgb": {
    "r": 95,
    "g": 19,
    "b": 94
  },
  "hsl": {
    "h": 300.789,
    "s": 66.667,
    "l": 22.353
  },
  "oklch": {
    "l": 0.35194,
    "c": 0.13981,
    "h": 328.6
  },
  "luminance": 0.03707
}

Semantic roles & 50–950 ramp

primary
#5F135E
secondary
#379738
accent
#EA403E
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5F135E

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

Preview Lab → · Contrast checker → · Palette generator →

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