#5E138F#5E138F

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

Color values

HEX#5E138F
RGBrgb(94, 19, 143)
HSLhsl(276, 77%, 32%)
HSVhsv(276, 87%, 56%)
CMYKcmyk(34.3%, 86.7%, 0%, 43.9%)
CIE-LABlab(26.24, 52.43, -51.88)
CIE-LCHlch(26.24, 73.76, 315.30°)
OKLaboklab(38.83% 0.1087 -0.1478)
OKLCHoklch(38.83% 0.183 306.3)
XYZxyz(9.8058, 4.8287, 26.3967)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E138F #448F13
analogous
#20138F #5E138F #8F1382
triadic
#5E138F #8F5E13 #138F5E
tetradic
#5E138F #8F2013 #448F13 #13828F
square
#5E138F #8F2013 #448F13 #13828F
split-complementary
#5E138F #828F13 #138F20
monochromatic
#170523 #3A0C59 #5E138F #821AC5 #A038E5

Accessibility & contrast

On white

10.68
#5E138F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5E138F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E138F
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E138F#FFFFFF#000000##FFFFFF
##5E138F1.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#003E8D
Tritanopia (blue-blind)
#553754
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5e138f;
/* rgb */ color: rgb(94, 19, 143);
/* oklch */ color: oklch(38.8% 0.183 306.3);
Tailwind
colors: {
  custom: {
    50: '#915db1',
    500: '#5e138f',
    950: '#000000',
  },
}
SCSS
$custom: #5e138f;
$custom-light: #915db1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e138f",
  "rgb": {
    "r": 94,
    "g": 19,
    "b": 143
  },
  "hsl": {
    "h": 276.29,
    "s": 76.543,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38834,
    "c": 0.18349,
    "h": 306.3
  },
  "luminance": 0.04829
}

Semantic roles & 50–950 ramp

primary
#5E138F
secondary
#71C33B
accent
#F33580
background
#F9F5FB
surface
#F2E9F6
border
#CCC5D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5E138F

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

Preview Lab → · Contrast checker → · Palette generator →

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