#5F135B#5F135B

#5F135B is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.0% C 0.137 H 330.4°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#5F135B
RGBrgb(95, 19, 91)
HSLhsl(303, 67%, 22%)
HSVhsv(303, 80%, 37%)
CMYKcmyk(0%, 80%, 4.2%, 62.7%)
CIE-LABlab(22.49, 42.05, -24.58)
CIE-LCHlch(22.49, 48.71, 329.69°)
OKLaboklab(35% 0.1194 -0.0679)
OKLCHoklch(35% 0.137 330.4)
XYZxyz(6.8405, 3.6545, 10.2406)
Luminance0.0365 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F135B #135F17
analogous
#3D135F #5F135B #5F1335
triadic
#5F135B #5B5F13 #135B5F
tetradic
#5F135B #5F3D13 #135F17 #13355F
square
#5F135B #5F3D13 #135F17 #13355F
split-complementary
#5F135B #355F13 #135F3D
monochromatic
#1A0518 #2C092A #5F135B #921D8C #C527BD

Accessibility & contrast

On white

12.13
#5F135B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#5F135B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F135B
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F135B#FFFFFF#000000##FFFFFF
##5F135B1.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092F5D
Deuteranopia (green-blind)
#2B3959
Tritanopia (blue-blind)
#631D36
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5f135b;
/* rgb */ color: rgb(95, 19, 91);
/* oklch */ color: oklch(35.0% 0.137 330.4);
Tailwind
colors: {
  custom: {
    50: '#8f5a8a',
    500: '#5f135b',
    950: '#000000',
  },
}
SCSS
$custom: #5f135b;
$custom-light: #8f5a8a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f135b",
  "rgb": {
    "r": 95,
    "g": 19,
    "b": 91
  },
  "hsl": {
    "h": 303.158,
    "s": 66.667,
    "l": 22.353
  },
  "oklch": {
    "l": 0.35003,
    "c": 0.13731,
    "h": 330.4
  },
  "luminance": 0.03654
}

Semantic roles & 50–950 ramp

primary
#5F135B
secondary
#37973C
accent
#EA473E
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F135B

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

Preview Lab → · Contrast checker → · Palette generator →

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