#5E125D#5E125D

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

Color values

HEX#5E125D
RGBrgb(94, 18, 93)
HSLhsl(301, 68%, 22%)
HSVhsv(301, 81%, 37%)
CMYKcmyk(0%, 80.9%, 1.1%, 63.1%)
CIE-LABlab(22.31, 42.51, -26.21)
CIE-LCHlch(22.31, 49.94, 328.34°)
OKLaboklab(34.88% 0.1192 -0.0726)
OKLCHoklch(34.88% 0.14 328.6)
XYZxyz(6.8081, 3.6031, 10.6907)
Luminance0.0360 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E125D #125E13
analogous
#39125E #5E125D #5E1237
triadic
#5E125D #5D5E12 #125D5E
tetradic
#5E125D #5E3912 #125E13 #12375E
square
#5E125D #5E3912 #125E13 #12375E
split-complementary
#5E125D #375E12 #125E39
monochromatic
#1A0519 #2B082A #5E125D #911C90 #C526C3

Accessibility & contrast

On white

12.21
#5E125D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E125D
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E125D#FFFFFF#000000##FFFFFF
##5E125D1.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032F5F
Deuteranopia (green-blind)
#28395B
Tritanopia (blue-blind)
#611E37
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5e125d;
/* rgb */ color: rgb(94, 18, 93);
/* oklch */ color: oklch(34.9% 0.140 328.6);
Tailwind
colors: {
  custom: {
    50: '#8f5a8b',
    500: '#5e125d',
    950: '#000000',
  },
}
SCSS
$custom: #5e125d;
$custom-light: #8f5a8b;
$custom-dark: #000000;
JSON
{
  "hex": "#5e125d",
  "rgb": {
    "r": 94,
    "g": 18,
    "b": 93
  },
  "hsl": {
    "h": 300.789,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.34877,
    "c": 0.13953,
    "h": 328.6
  },
  "luminance": 0.03603
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5E125D

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

Preview Lab → · Contrast checker → · Palette generator →

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