#5E125E#5E125E

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

Color values

HEX#5E125E
RGBrgb(94, 18, 94)
HSLhsl(300, 68%, 22%)
HSVhsv(300, 81%, 37%)
CMYKcmyk(0%, 80.9%, 0%, 63.1%)
CIE-LABlab(22.38, 42.69, -26.77)
CIE-LCHlch(22.38, 50.39, 327.91°)
OKLaboklab(34.94% 0.1191 -0.0742)
OKLCHoklch(34.94% 0.14 328.1)
XYZxyz(6.8527, 3.6210, 10.9255)
Luminance0.0362 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E125E #125E12
analogous
#38125E #5E125E #5E1238
triadic
#5E125E #5E5E12 #125E5E
tetradic
#5E125E #5E3812 #125E12 #12385E
square
#5E125E #5E3812 #125E12 #12385E
split-complementary
#5E125E #385E12 #125E38
monochromatic
#1A051A #2B082B #5E125E #911C91 #C526C5

Accessibility & contrast

On white

12.18
#5E125E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E125E
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E125E#FFFFFF#000000##FFFFFF
##5E125E1.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022F60
Deuteranopia (green-blind)
#28395C
Tritanopia (blue-blind)
#611F37
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5e125e;
/* rgb */ color: rgb(94, 18, 94);
/* oklch */ color: oklch(34.9% 0.140 328.1);
Tailwind
colors: {
  custom: {
    50: '#8f5a8c',
    500: '#5e125e',
    950: '#000000',
  },
}
SCSS
$custom: #5e125e;
$custom-light: #8f5a8c;
$custom-dark: #000000;
JSON
{
  "hex": "#5e125e",
  "rgb": {
    "r": 94,
    "g": 18,
    "b": 94
  },
  "hsl": {
    "h": 300,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.34943,
    "c": 0.14037,
    "h": 328.1
  },
  "luminance": 0.0362
}

Semantic roles & 50–950 ramp

primary
#5E125E
secondary
#359635
accent
#EB3D3D
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5E125E

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

Preview Lab → · Contrast checker → · Palette generator →

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