#5E125A#5E125A

#5E125A is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.7% C 0.137 H 330.4°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#5E125A
RGBrgb(94, 18, 90)
HSLhsl(303, 68%, 22%)
HSVhsv(303, 81%, 37%)
CMYKcmyk(0%, 80.9%, 4.3%, 63.1%)
CIE-LABlab(22.13, 41.97, -24.51)
CIE-LCHlch(22.13, 48.61, 329.72°)
OKLaboklab(34.69% 0.1192 -0.0677)
OKLCHoklch(34.69% 0.137 330.4)
XYZxyz(6.6778, 3.5510, 10.0046)
Luminance0.0355 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E125A #125E16
analogous
#3C125E #5E125A #5E1234
triadic
#5E125A #5A5E12 #125A5E
tetradic
#5E125A #5E3C12 #125E16 #12345E
square
#5E125A #5E3C12 #125E16 #12345E
split-complementary
#5E125A #345E12 #125E3C
monochromatic
#1A0519 #2B0829 #5E125A #911C8B #C526BC

Accessibility & contrast

On white

12.28
#5E125A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E125A
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E125A#FFFFFF#000000##FFFFFF
##5E125A1.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082E5C
Deuteranopia (green-blind)
#2A3958
Tritanopia (blue-blind)
#621C35
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5e125a;
/* rgb */ color: rgb(94, 18, 90);
/* oklch */ color: oklch(34.7% 0.137 330.4);
Tailwind
colors: {
  custom: {
    50: '#8f5a89',
    500: '#5e125a',
    950: '#000000',
  },
}
SCSS
$custom: #5e125a;
$custom-light: #8f5a89;
$custom-dark: #000000;
JSON
{
  "hex": "#5e125a",
  "rgb": {
    "r": 94,
    "g": 18,
    "b": 90
  },
  "hsl": {
    "h": 303.158,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.34685,
    "c": 0.13704,
    "h": 330.4
  },
  "luminance": 0.0355
}

Semantic roles & 50–950 ramp

primary
#5E125A
secondary
#35963B
accent
#EB463D
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5E125A

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

Preview Lab → · Contrast checker → · Palette generator →

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