#5E138C#5E138C

#5E138C is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.6% C 0.181 H 307.4°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#5E138C
RGBrgb(94, 19, 140)
HSLhsl(277, 76%, 31%)
HSVhsv(277, 86%, 55%)
CMYKcmyk(32.9%, 86.4%, 0%, 45.1%)
CIE-LABlab(25.98, 51.76, -50.44)
CIE-LCHlch(25.98, 72.28, 315.74°)
OKLaboklab(38.57% 0.1097 -0.1436)
OKLCHoklch(38.57% 0.181 307.4)
XYZxyz(9.5816, 4.7390, 25.2158)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E138C #418C13
analogous
#21138C #5E138C #8C137D
triadic
#5E138C #8C5E13 #138C5E
tetradic
#5E138C #8C2113 #418C13 #137D8C
square
#5E138C #8C2113 #418C13 #137D8C
split-complementary
#5E138C #7D8C13 #138C21
monochromatic
#160420 #3A0C56 #5E138C #821AC2 #A236E4

Accessibility & contrast

On white

10.78
#5E138C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5E138C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E138C
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E138C#FFFFFF#000000##FFFFFF
##5E138C1.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#003E8A
Tritanopia (blue-blind)
#563552
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5e138c;
/* rgb */ color: rgb(94, 19, 140);
/* oklch */ color: oklch(38.6% 0.181 307.4);
Tailwind
colors: {
  custom: {
    50: '#915dae',
    500: '#5e138c',
    950: '#000000',
  },
}
SCSS
$custom: #5e138c;
$custom-light: #915dae;
$custom-dark: #000000;
JSON
{
  "hex": "#5e138c",
  "rgb": {
    "r": 94,
    "g": 19,
    "b": 140
  },
  "hsl": {
    "h": 277.19,
    "s": 76.101,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38571,
    "c": 0.1807,
    "h": 307.4
  },
  "luminance": 0.04739
}

Semantic roles & 50–950 ramp

primary
#5E138C
secondary
#6DC03B
accent
#F3357D
background
#F9F5FA
surface
#F2E9F4
border
#CCC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E138C

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

Preview Lab → · Contrast checker → · Palette generator →

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