#5D125F#5D125F

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

Color values

HEX#5D125F
RGBrgb(93, 18, 95)
HSLhsl(298, 68%, 22%)
HSVhsv(298, 81%, 37%)
CMYKcmyk(2.1%, 81.1%, 0%, 62.7%)
CIE-LABlab(22.25, 42.64, -27.64)
CIE-LCHlch(22.25, 50.81, 327.05°)
OKLaboklab(34.84% 0.1179 -0.0768)
OKLCHoklch(34.84% 0.141 326.9)
XYZxyz(6.7960, 3.5865, 11.1586)
Luminance0.0359 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D125F #145F12
analogous
#37125F #5D125F #5F123A
triadic
#5D125F #5F5D12 #125F5D
tetradic
#5D125F #5F3712 #145F12 #123A5F
square
#5D125F #5F3712 #145F12 #123A5F
split-complementary
#5D125F #3A5F12 #125F37
monochromatic
#19051A #2B082C #5D125F #8F1C92 #C225C6

Accessibility & contrast

On white

12.23
#5D125F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D125F
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D125F#FFFFFF#000000##FFFFFF
##5D125F1.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F61
Deuteranopia (green-blind)
#26385D
Tritanopia (blue-blind)
#601F38
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5d125f;
/* rgb */ color: rgb(93, 18, 95);
/* oklch */ color: oklch(34.8% 0.141 326.9);
Tailwind
colors: {
  custom: {
    50: '#8e5a8d',
    500: '#5d125f',
    950: '#000000',
  },
}
SCSS
$custom: #5d125f;
$custom-light: #8e5a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5d125f",
  "rgb": {
    "r": 93,
    "g": 18,
    "b": 95
  },
  "hsl": {
    "h": 298.442,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.3484,
    "c": 0.14071,
    "h": 326.9
  },
  "luminance": 0.03586
}

Semantic roles & 50–950 ramp

primary
#5D125F
secondary
#389736
accent
#EB3D41
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5D125F

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

Preview Lab → · Contrast checker → · Palette generator →

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