#5D125E#5D125E

#5D125E is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.8% C 0.140 H 327.5°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#5D125E
RGBrgb(93, 18, 94)
HSLhsl(299, 68%, 22%)
HSVhsv(299, 81%, 37%)
CMYKcmyk(1.1%, 80.9%, 0%, 63.1%)
CIE-LABlab(22.19, 42.45, -27.08)
CIE-LCHlch(22.19, 50.36, 327.47°)
OKLaboklab(34.77% 0.118 -0.0751)
OKLCHoklch(34.77% 0.14 327.5)
XYZxyz(6.7508, 3.5684, 10.9207)
Luminance0.0357 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D125E #135E12
analogous
#37125E #5D125E #5E1239
triadic
#5D125E #5E5D12 #125E5D
tetradic
#5D125E #5E3712 #135E12 #12395E
square
#5D125E #5E3712 #135E12 #12395E
split-complementary
#5D125E #395E12 #125E37
monochromatic
#19051A #2A082B #5D125E #901C91 #C326C5

Accessibility & contrast

On white

12.25
#5D125E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#5D125E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D125E
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D125E#FFFFFF#000000##FFFFFF
##5D125E1.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F60
Deuteranopia (green-blind)
#27385C
Tritanopia (blue-blind)
#601F37
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5d125e;
/* rgb */ color: rgb(93, 18, 94);
/* oklch */ color: oklch(34.8% 0.140 327.5);
Tailwind
colors: {
  custom: {
    50: '#8e5a8c',
    500: '#5d125e',
    950: '#000000',
  },
}
SCSS
$custom: #5d125e;
$custom-light: #8e5a8c;
$custom-dark: #000000;
JSON
{
  "hex": "#5d125e",
  "rgb": {
    "r": 93,
    "g": 18,
    "b": 94
  },
  "hsl": {
    "h": 299.211,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.34774,
    "c": 0.13986,
    "h": 327.5
  },
  "luminance": 0.03568
}

Semantic roles & 50–950 ramp

primary
#5D125E
secondary
#379635
accent
#EB3D3F
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5D125E

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

Preview Lab → · Contrast checker → · Palette generator →

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