#5E125F#5E125F

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

Color values

HEX#5E125F
RGBrgb(94, 18, 95)
HSLhsl(299, 68%, 22%)
HSVhsv(299, 81%, 37%)
CMYKcmyk(1.1%, 81.1%, 0%, 62.7%)
CIE-LABlab(22.44, 42.87, -27.33)
CIE-LCHlch(22.44, 50.84, 327.48°)
OKLaboklab(35.01% 0.1191 -0.0759)
OKLCHoklch(35.01% 0.141 327.5)
XYZxyz(6.8979, 3.6390, 11.1633)
Luminance0.0364 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E125F #135F12
analogous
#38125F #5E125F #5F123A
triadic
#5E125F #5F5E12 #125F5E
tetradic
#5E125F #5F3812 #135F12 #123A5F
square
#5E125F #5F3812 #135F12 #123A5F
split-complementary
#5E125F #3A5F12 #125F38
monochromatic
#19051A #2B082C #5E125F #911C92 #C425C6

Accessibility & contrast

On white

12.15
#5E125F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#5E125F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E125F
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E125F#FFFFFF#000000##FFFFFF
##5E125F1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F61
Deuteranopia (green-blind)
#27395D
Tritanopia (blue-blind)
#611F38
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5e125f;
/* rgb */ color: rgb(94, 18, 95);
/* oklch */ color: oklch(35.0% 0.141 327.5);
Tailwind
colors: {
  custom: {
    50: '#8f5a8d',
    500: '#5e125f',
    950: '#000000',
  },
}
SCSS
$custom: #5e125f;
$custom-light: #8f5a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5e125f",
  "rgb": {
    "r": 94,
    "g": 18,
    "b": 95
  },
  "hsl": {
    "h": 299.221,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.35008,
    "c": 0.14122,
    "h": 327.5
  },
  "luminance": 0.03639
}

Semantic roles & 50–950 ramp

primary
#5E125F
secondary
#379736
accent
#EB3D3F
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5E125F

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

Preview Lab → · Contrast checker → · Palette generator →

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