#5E147B#5E147B

#5E147B is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.2% C 0.164 H 313.8°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#5E147B
RGBrgb(94, 20, 123)
HSLhsl(283, 72%, 28%)
HSVhsv(283, 84%, 48%)
CMYKcmyk(23.6%, 83.7%, 0%, 51.8%)
CIE-LABlab(24.67, 47.77, -41.88)
CIE-LCHlch(24.67, 63.52, 318.76°)
OKLaboklab(37.22% 0.1136 -0.1185)
OKLCHoklch(37.22% 0.164 313.8)
XYZxyz(8.4408, 4.3103, 19.1224)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E147B #317B14
analogous
#2B147B #5E147B #7B1464
triadic
#5E147B #7B5E14 #147B5E
tetradic
#5E147B #7B2B14 #317B14 #14647B
square
#5E147B #7B2B14 #317B14 #14647B
split-complementary
#5E147B #647B14 #147B2B
monochromatic
#14041A #360B46 #5E147B #861DB0 #AB2DDD

Accessibility & contrast

On white

11.28
#5E147B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#5E147B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E147B
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E147B#FFFFFF#000000##FFFFFF
##5E147B1.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#073C79
Tritanopia (blue-blind)
#5B2E48
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5e147b;
/* rgb */ color: rgb(94, 20, 123);
/* oklch */ color: oklch(37.2% 0.164 313.8);
Tailwind
colors: {
  custom: {
    50: '#905ca2',
    500: '#5e147b',
    950: '#000000',
  },
}
SCSS
$custom: #5e147b;
$custom-light: #905ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e147b",
  "rgb": {
    "r": 94,
    "g": 20,
    "b": 123
  },
  "hsl": {
    "h": 283.107,
    "s": 72.028,
    "l": 28.039
  },
  "oklch": {
    "l": 0.37222,
    "c": 0.16411,
    "h": 313.8
  },
  "luminance": 0.0431
}

Semantic roles & 50–950 ramp

primary
#5E147B
secondary
#5CB13A
accent
#EF396C
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E147B

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

Preview Lab → · Contrast checker → · Palette generator →

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