#5E138E#5E138E

#5E138E is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.7% C 0.183 H 306.7°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#5E138E
RGBrgb(94, 19, 142)
HSLhsl(277, 76%, 32%)
HSVhsv(277, 87%, 56%)
CMYKcmyk(33.8%, 86.6%, 0%, 44.3%)
CIE-LABlab(26.15, 52.21, -51.40)
CIE-LCHlch(26.15, 73.27, 315.45°)
OKLaboklab(38.75% 0.109 -0.1464)
OKLCHoklch(38.75% 0.183 306.7)
XYZxyz(9.7304, 4.7985, 25.9995)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E138E #438E13
analogous
#20138E #5E138E #8E1381
triadic
#5E138E #8E5E13 #138E5E
tetradic
#5E138E #8E2013 #438E13 #13818E
square
#5E138E #8E2013 #438E13 #13818E
split-complementary
#5E138E #818E13 #138E20
monochromatic
#170522 #3A0C58 #5E138E #821AC4 #A137E4

Accessibility & contrast

On white

10.72
#5E138E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5E138E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E138E
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E138E#FFFFFF#000000##FFFFFF
##5E138E1.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#003E8C
Tritanopia (blue-blind)
#553653
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5e138e;
/* rgb */ color: rgb(94, 19, 142);
/* oklch */ color: oklch(38.7% 0.183 306.7);
Tailwind
colors: {
  custom: {
    50: '#915db0',
    500: '#5e138e',
    950: '#000000',
  },
}
SCSS
$custom: #5e138e;
$custom-light: #915db0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e138e",
  "rgb": {
    "r": 94,
    "g": 19,
    "b": 142
  },
  "hsl": {
    "h": 276.585,
    "s": 76.398,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38746,
    "c": 0.18255,
    "h": 306.7
  },
  "luminance": 0.04798
}

Semantic roles & 50–950 ramp

primary
#5E138E
secondary
#70C23B
accent
#F3357F
background
#F9F5FA
surface
#F2E9F5
border
#CCC5CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5E138E

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

Preview Lab → · Contrast checker → · Palette generator →

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