#5F125D#5F125D

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

Color values

HEX#5F125D
RGBrgb(95, 18, 93)
HSLhsl(302, 68%, 22%)
HSVhsv(302, 81%, 37%)
CMYKcmyk(0%, 81.1%, 2.1%, 62.7%)
CIE-LABlab(22.50, 42.74, -25.90)
CIE-LCHlch(22.50, 49.98, 328.79°)
OKLaboklab(35.05% 0.1203 -0.0717)
OKLCHoklch(35.05% 0.14 329.2)
XYZxyz(6.9114, 3.6564, 10.6955)
Luminance0.0366 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F125D #125F14
analogous
#3A125F #5F125D #5F1237
triadic
#5F125D #5D5F12 #125D5F
tetradic
#5F125D #5F3A12 #125F14 #12375F
square
#5F125D #5F3A12 #125F14 #12375F
split-complementary
#5F125D #375F12 #125F3A
monochromatic
#1A0519 #2C082B #5F125D #921C8F #C625C2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F125D#FFFFFF#000000##FFFFFF
##5F125D1.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)
#052F5F
Deuteranopia (green-blind)
#29395B
Tritanopia (blue-blind)
#631E37
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5f125d;
/* rgb */ color: rgb(95, 18, 93);
/* oklch */ color: oklch(35.0% 0.140 329.2);
Tailwind
colors: {
  custom: {
    50: '#8f5a8b',
    500: '#5f125d',
    950: '#000000',
  },
}
SCSS
$custom: #5f125d;
$custom-light: #8f5a8b;
$custom-dark: #000000;
JSON
{
  "hex": "#5f125d",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 93
  },
  "hsl": {
    "h": 301.558,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.35047,
    "c": 0.14006,
    "h": 329.2
  },
  "luminance": 0.03656
}

Semantic roles & 50–950 ramp

primary
#5F125D
secondary
#369738
accent
#EB413D
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5F125D

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

Preview Lab → · Contrast checker → · Palette generator →

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