#5F135A#5F135A

#5F135A is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.9% C 0.136 H 331.0°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#5F135A
RGBrgb(95, 19, 90)
HSLhsl(304, 67%, 22%)
HSVhsv(304, 80%, 37%)
CMYKcmyk(0%, 80%, 5.3%, 62.7%)
CIE-LABlab(22.43, 41.88, -24.01)
CIE-LCHlch(22.43, 48.27, 330.17°)
OKLaboklab(34.94% 0.1194 -0.0662)
OKLCHoklch(34.94% 0.136 331)
XYZxyz(6.7976, 3.6374, 10.0149)
Luminance0.0364 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F135A #135F18
analogous
#3E135F #5F135A #5F1334
triadic
#5F135A #5A5F13 #135A5F
tetradic
#5F135A #5F3E13 #135F18 #13345F
square
#5F135A #5F3E13 #135F18 #13345F
split-complementary
#5F135A #345F13 #135F3E
monochromatic
#1A0518 #2C092A #5F135A #921D8A #C527BB

Accessibility & contrast

On white

12.16
#5F135A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F135A
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F135A#FFFFFF#000000##FFFFFF
##5F135A1.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2F5C
Deuteranopia (green-blind)
#2B3958
Tritanopia (blue-blind)
#631D35
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5f135a;
/* rgb */ color: rgb(95, 19, 90);
/* oklch */ color: oklch(34.9% 0.136 331.0);
Tailwind
colors: {
  custom: {
    50: '#8f5a89',
    500: '#5f135a',
    950: '#000000',
  },
}
SCSS
$custom: #5f135a;
$custom-light: #8f5a89;
$custom-dark: #000000;
JSON
{
  "hex": "#5f135a",
  "rgb": {
    "r": 95,
    "g": 19,
    "b": 90
  },
  "hsl": {
    "h": 303.947,
    "s": 66.667,
    "l": 22.353
  },
  "oklch": {
    "l": 0.3494,
    "c": 0.13649,
    "h": 331
  },
  "luminance": 0.03637
}

Semantic roles & 50–950 ramp

primary
#5F135A
secondary
#37973D
accent
#EA493E
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F135A

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

Preview Lab → · Contrast checker → · Palette generator →

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