#5E126F#5E126F

#5E126F is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.1% C 0.155 H 319.3°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#5E126F
RGBrgb(94, 18, 111)
HSLhsl(289, 72%, 25%)
HSVhsv(289, 84%, 44%)
CMYKcmyk(15.3%, 83.8%, 0%, 56.5%)
CIE-LABlab(23.54, 45.93, -36.02)
CIE-LCHlch(23.54, 58.37, 321.90°)
OKLaboklab(36.14% 0.1175 -0.1013)
OKLCHoklch(36.14% 0.155 319.3)
XYZxyz(7.7013, 3.9604, 15.3946)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E126F #236F12
analogous
#2F126F #5E126F #6F1252
triadic
#5E126F #6F5E12 #126F5E
tetradic
#5E126F #6F2F12 #236F12 #12526F
square
#5E126F #6F2F12 #236F12 #12526F
split-complementary
#5E126F #526F12 #126F2F
monochromatic
#16041A #31093A #5E126F #8B1BA4 #B723D8

Accessibility & contrast

On white

11.72
#5E126F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#5E126F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E126F
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E126F#FFFFFF#000000##FFFFFF
##5E126F1.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003371
Deuteranopia (green-blind)
#1A3A6D
Tritanopia (blue-blind)
#5E2741
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5e126f;
/* rgb */ color: rgb(94, 18, 111);
/* oklch */ color: oklch(36.1% 0.155 319.3);
Tailwind
colors: {
  custom: {
    50: '#8f5b99',
    500: '#5e126f',
    950: '#000000',
  },
}
SCSS
$custom: #5e126f;
$custom-light: #8f5b99;
$custom-dark: #000000;
JSON
{
  "hex": "#5e126f",
  "rgb": {
    "r": 94,
    "g": 18,
    "b": 111
  },
  "hsl": {
    "h": 289.032,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.36139,
    "c": 0.15513,
    "h": 319.3
  },
  "luminance": 0.0396
}

Semantic roles & 50–950 ramp

primary
#5E126F
secondary
#4BA637
accent
#EF395A
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5E126F

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

Preview Lab → · Contrast checker → · Palette generator →

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