#5F155A#5F155A

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

Color values

HEX#5F155A
RGBrgb(95, 21, 90)
HSLhsl(304, 64%, 23%)
HSVhsv(304, 78%, 37%)
CMYKcmyk(0%, 77.9%, 5.3%, 62.7%)
CIE-LABlab(22.68, 41.17, -23.62)
CIE-LCHlch(22.68, 47.47, 330.15°)
OKLaboklab(35.12% 0.1173 -0.0651)
OKLCHoklch(35.12% 0.134 331)
XYZxyz(6.8329, 3.7080, 10.0267)
Luminance0.0371 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F155A #155F1A
analogous
#3F155F #5F155A #5F1535
triadic
#5F155A #5A5F15 #155A5F
tetradic
#5F155A #5F3F15 #155F1A #15355F
square
#5F155A #5F3F15 #155F1A #15355F
split-complementary
#5F155A #355F15 #155F3F
monochromatic
#190618 #2D0A2B #5F155A #912089 #C32BB9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F155A#FFFFFF#000000##FFFFFF
##5F155A1.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)
#0E305C
Deuteranopia (green-blind)
#2C3A58
Tritanopia (blue-blind)
#631E36
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5f155a;
/* rgb */ color: rgb(95, 21, 90);
/* oklch */ color: oklch(35.1% 0.134 331.0);
Tailwind
colors: {
  custom: {
    50: '#8f5b89',
    500: '#5f155a',
    950: '#000000',
  },
}
SCSS
$custom: #5f155a;
$custom-light: #8f5b89;
$custom-dark: #000000;
JSON
{
  "hex": "#5f155a",
  "rgb": {
    "r": 95,
    "g": 21,
    "b": 90
  },
  "hsl": {
    "h": 304.054,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.35117,
    "c": 0.13416,
    "h": 331
  },
  "luminance": 0.03707
}

Semantic roles & 50–950 ramp

primary
#5F155A
secondary
#3A9640
accent
#E74C41
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F155A

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

Preview Lab → · Contrast checker → · Palette generator →

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