#5E125B#5E125B

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

Color values

HEX#5E125B
RGBrgb(94, 18, 91)
HSLhsl(302, 68%, 22%)
HSVhsv(302, 81%, 37%)
CMYKcmyk(0%, 80.9%, 3.2%, 63.1%)
CIE-LABlab(22.19, 42.15, -25.08)
CIE-LCHlch(22.19, 49.05, 329.25°)
OKLaboklab(34.75% 0.1192 -0.0693)
OKLCHoklch(34.75% 0.138 329.8)
XYZxyz(6.7207, 3.5682, 10.2303)
Luminance0.0357 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E125B #125E15
analogous
#3B125E #5E125B #5E1235
triadic
#5E125B #5B5E12 #125B5E
tetradic
#5E125B #5E3B12 #125E15 #12355E
square
#5E125B #5E3B12 #125E15 #12355E
split-complementary
#5E125B #355E12 #125E3B
monochromatic
#1A0519 #2B0829 #5E125B #911C8D #C526BE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5E125B#FFFFFF#000000##FFFFFF
##5E125B1.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)
#072F5D
Deuteranopia (green-blind)
#293959
Tritanopia (blue-blind)
#621D36
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5e125b;
/* rgb */ color: rgb(94, 18, 91);
/* oklch */ color: oklch(34.7% 0.138 329.8);
Tailwind
colors: {
  custom: {
    50: '#8f5a8a',
    500: '#5e125b',
    950: '#000000',
  },
}
SCSS
$custom: #5e125b;
$custom-light: #8f5a8a;
$custom-dark: #000000;
JSON
{
  "hex": "#5e125b",
  "rgb": {
    "r": 94,
    "g": 18,
    "b": 91
  },
  "hsl": {
    "h": 302.368,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.34748,
    "c": 0.13786,
    "h": 329.8
  },
  "luminance": 0.03568
}

Semantic roles & 50–950 ramp

primary
#5E125B
secondary
#359639
accent
#EB443D
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5E125B

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

Preview Lab → · Contrast checker → · Palette generator →

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