#5F125A#5F125A

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

Color values

HEX#5F125A
RGBrgb(95, 18, 90)
HSLhsl(304, 68%, 22%)
HSVhsv(304, 81%, 37%)
CMYKcmyk(0%, 81.1%, 5.3%, 62.7%)
CIE-LABlab(22.32, 42.21, -24.20)
CIE-LCHlch(22.32, 48.66, 330.18°)
OKLaboklab(34.86% 0.1203 -0.0667)
OKLCHoklch(34.86% 0.138 331)
XYZxyz(6.7811, 3.6042, 10.0094)
Luminance0.0360 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F125A #125F17
analogous
#3E125F #5F125A #5F1234
triadic
#5F125A #5A5F12 #125A5F
tetradic
#5F125A #5F3E12 #125F17 #12345F
square
#5F125A #5F3E12 #125F17 #12345F
split-complementary
#5F125A #345F12 #125F3E
monochromatic
#1A0518 #2C0829 #5F125A #921C8B #C625BB

Accessibility & contrast

On white

12.20
#5F125A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#5F125A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F125A
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F125A#FFFFFF#000000##FFFFFF
##5F125A1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092F5C
Deuteranopia (green-blind)
#2B3958
Tritanopia (blue-blind)
#631C35
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5f125a;
/* rgb */ color: rgb(95, 18, 90);
/* oklch */ color: oklch(34.9% 0.138 331.0);
Tailwind
colors: {
  custom: {
    50: '#8f5a89',
    500: '#5f125a',
    950: '#000000',
  },
}
SCSS
$custom: #5f125a;
$custom-light: #8f5a89;
$custom-dark: #000000;
JSON
{
  "hex": "#5f125a",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 90
  },
  "hsl": {
    "h": 303.896,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.34856,
    "c": 0.13759,
    "h": 331
  },
  "luminance": 0.03604
}

Semantic roles & 50–950 ramp

primary
#5F125A
secondary
#36973C
accent
#EB483D
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F125A

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

Preview Lab → · Contrast checker → · Palette generator →

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