#5E127B#5E127B

#5E127B is a dark, vivid purple. Relative luminance 0.042; OKLCH L 37.1% C 0.166 H 313.9°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#5E127B
RGBrgb(94, 18, 123)
HSLhsl(283, 74%, 28%)
HSVhsv(283, 85%, 48%)
CMYKcmyk(23.6%, 85.4%, 0%, 51.8%)
CIE-LABlab(24.46, 48.39, -42.22)
CIE-LCHlch(24.46, 64.22, 318.89°)
OKLaboklab(37.07% 0.1151 -0.1195)
OKLCHoklch(37.07% 0.166 313.9)
XYZxyz(8.4069, 4.2426, 19.1111)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E127B #2F7B12
analogous
#2A127B #5E127B #7B1263
triadic
#5E127B #7B5E12 #127B5E
tetradic
#5E127B #7B2A12 #2F7B12 #12637B
square
#5E127B #7B2A12 #2F7B12 #12637B
split-complementary
#5E127B #637B12 #127B2A
monochromatic
#14041B #350A46 #5E127B #871AB0 #AD28E0

Accessibility & contrast

On white

11.36
#5E127B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#5E127B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E127B
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E127B#FFFFFF#000000##FFFFFF
##5E127B1.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#043C79
Tritanopia (blue-blind)
#5B2D48
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5e127b;
/* rgb */ color: rgb(94, 18, 123);
/* oklch */ color: oklch(37.1% 0.166 313.9);
Tailwind
colors: {
  custom: {
    50: '#905ca2',
    500: '#5e127b',
    950: '#000000',
  },
}
SCSS
$custom: #5e127b;
$custom-light: #905ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e127b",
  "rgb": {
    "r": 94,
    "g": 18,
    "b": 123
  },
  "hsl": {
    "h": 283.429,
    "s": 74.468,
    "l": 27.647
  },
  "oklch": {
    "l": 0.37072,
    "c": 0.1659,
    "h": 313.9
  },
  "luminance": 0.04242
}

Semantic roles & 50–950 ramp

primary
#5E127B
secondary
#59B138
accent
#F1376A
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5E127B

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

Preview Lab → · Contrast checker → · Palette generator →

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