#5F135C#5F135C

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

Color values

HEX#5F135C
RGBrgb(95, 19, 92)
HSLhsl(302, 67%, 22%)
HSVhsv(302, 80%, 37%)
CMYKcmyk(0%, 80%, 3.2%, 62.7%)
CIE-LABlab(22.56, 42.23, -25.15)
CIE-LCHlch(22.56, 49.15, 329.22°)
OKLaboklab(35.07% 0.1194 -0.0695)
OKLCHoklch(35.07% 0.138 329.8)
XYZxyz(6.8839, 3.6719, 10.4693)
Luminance0.0367 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F135C #135F16
analogous
#3C135F #5F135C #5F1336
triadic
#5F135C #5C5F13 #135C5F
tetradic
#5F135C #5F3C13 #135F16 #13365F
square
#5F135C #5F3C13 #135F16 #13365F
split-complementary
#5F135C #365F13 #135F3C
monochromatic
#1A0519 #2C092B #5F135C #921D8D #C527BF

Accessibility & contrast

On white

12.11
#5F135C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F135C
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F135C#FFFFFF#000000##FFFFFF
##5F135C1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082F5E
Deuteranopia (green-blind)
#2A395A
Tritanopia (blue-blind)
#631E37
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5f135c;
/* rgb */ color: rgb(95, 19, 92);
/* oklch */ color: oklch(35.1% 0.138 329.8);
Tailwind
colors: {
  custom: {
    50: '#8f5a8a',
    500: '#5f135c',
    950: '#000000',
  },
}
SCSS
$custom: #5f135c;
$custom-light: #8f5a8a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f135c",
  "rgb": {
    "r": 95,
    "g": 19,
    "b": 92
  },
  "hsl": {
    "h": 302.368,
    "s": 66.667,
    "l": 22.353
  },
  "oklch": {
    "l": 0.35066,
    "c": 0.13814,
    "h": 329.8
  },
  "luminance": 0.03671
}

Semantic roles & 50–950 ramp

primary
#5F135C
secondary
#37973B
accent
#EA453E
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5F135C

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

Preview Lab → · Contrast checker → · Palette generator →

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