#5E138A#5E138A

#5E138A is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.4% C 0.179 H 308.1°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#5E138A
RGBrgb(94, 19, 138)
HSLhsl(278, 76%, 31%)
HSVhsv(278, 86%, 54%)
CMYKcmyk(31.9%, 86.2%, 0%, 45.9%)
CIE-LABlab(25.80, 51.32, -49.48)
CIE-LCHlch(25.80, 71.29, 316.05°)
OKLaboklab(38.4% 0.1103 -0.1408)
OKLCHoklch(38.4% 0.179 308.1)
XYZxyz(9.4354, 4.6806, 24.4462)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E138A #3F8A13
analogous
#22138A #5E138A #8A137A
triadic
#5E138A #8A5E13 #138A5E
tetradic
#5E138A #8A2213 #3F8A13 #137A8A
square
#5E138A #8A2213 #3F8A13 #137A8A
split-complementary
#5E138A #7A8A13 #138A22
monochromatic
#15041E #390C54 #5E138A #831AC0 #A234E3

Accessibility & contrast

On white

10.85
#5E138A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5E138A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E138A
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E138A#FFFFFF#000000##FFFFFF
##5E138A1.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8D
Deuteranopia (green-blind)
#003E88
Tritanopia (blue-blind)
#573451
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5e138a;
/* rgb */ color: rgb(94, 19, 138);
/* oklch */ color: oklch(38.4% 0.179 308.1);
Tailwind
colors: {
  custom: {
    50: '#915dad',
    500: '#5e138a',
    950: '#000000',
  },
}
SCSS
$custom: #5e138a;
$custom-light: #915dad;
$custom-dark: #000000;
JSON
{
  "hex": "#5e138a",
  "rgb": {
    "r": 94,
    "g": 19,
    "b": 138
  },
  "hsl": {
    "h": 277.815,
    "s": 75.796,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38397,
    "c": 0.17884,
    "h": 308.1
  },
  "luminance": 0.0468
}

Semantic roles & 50–950 ramp

primary
#5E138A
secondary
#6BBE3A
accent
#F2357B
background
#F9F5FA
surface
#F2E9F4
border
#CCC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E138A

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

Preview Lab → · Contrast checker → · Palette generator →

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