#5F125E#5F125E

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

Color values

HEX#5F125E
RGBrgb(95, 18, 94)
HSLhsl(301, 68%, 22%)
HSVhsv(301, 81%, 37%)
CMYKcmyk(0%, 81.1%, 1.1%, 62.7%)
CIE-LABlab(22.56, 42.92, -26.46)
CIE-LCHlch(22.56, 50.42, 328.34°)
OKLaboklab(35.11% 0.1203 -0.0733)
OKLCHoklch(35.11% 0.141 328.6)
XYZxyz(6.9559, 3.6742, 10.9303)
Luminance0.0367 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F125E #125F13
analogous
#3A125F #5F125E #5F1238
triadic
#5F125E #5E5F12 #125E5F
tetradic
#5F125E #5F3A12 #125F13 #12385F
square
#5F125E #5F3A12 #125F13 #12385F
split-complementary
#5F125E #385F12 #125F3A
monochromatic
#1A0519 #2C082B #5F125E #921C91 #C625C4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F125E#FFFFFF#000000##FFFFFF
##5F125E1.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)
#032F60
Deuteranopia (green-blind)
#29395C
Tritanopia (blue-blind)
#621E37
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5f125e;
/* rgb */ color: rgb(95, 18, 94);
/* oklch */ color: oklch(35.1% 0.141 328.6);
Tailwind
colors: {
  custom: {
    50: '#8f5a8c',
    500: '#5f125e',
    950: '#000000',
  },
}
SCSS
$custom: #5f125e;
$custom-light: #8f5a8c;
$custom-dark: #000000;
JSON
{
  "hex": "#5f125e",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 94
  },
  "hsl": {
    "h": 300.779,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.35112,
    "c": 0.14089,
    "h": 328.6
  },
  "luminance": 0.03674
}

Semantic roles & 50–950 ramp

primary
#5F125E
secondary
#369737
accent
#EB3F3D
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5F125E

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

Preview Lab → · Contrast checker → · Palette generator →

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