#5E118E#5E118E

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

Color values

HEX#5E118E
RGBrgb(94, 17, 142)
HSLhsl(277, 79%, 31%)
HSVhsv(277, 88%, 56%)
CMYKcmyk(33.8%, 88%, 0%, 44.3%)
CIE-LABlab(25.96, 52.77, -51.71)
CIE-LCHlch(25.96, 73.89, 315.58°)
OKLaboklab(38.61% 0.1102 -0.1473)
OKLCHoklch(38.61% 0.184 306.8)
XYZxyz(9.6980, 4.7337, 25.9887)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E118E #418E11
analogous
#1F118E #5E118E #8E117F
triadic
#5E118E #8E5E11 #118E5E
tetradic
#5E118E #8E1F11 #418E11 #117F8E
square
#5E118E #8E1F11 #418E11 #117F8E
split-complementary
#5E118E #7F8E11 #118E1F
monochromatic
#160421 #3A0A57 #5E118E #8218C5 #A233E7

Accessibility & contrast

On white

10.79
#5E118E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E118E
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E118E#FFFFFF#000000##FFFFFF
##5E118E1.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e118e;
/* rgb */ color: rgb(94, 17, 142);
/* oklch */ color: oklch(38.6% 0.184 306.8);
Tailwind
colors: {
  custom: {
    50: '#915db0',
    500: '#5e118e',
    950: '#000000',
  },
}
SCSS
$custom: #5e118e;
$custom-light: #915db0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e118e",
  "rgb": {
    "r": 94,
    "g": 17,
    "b": 142
  },
  "hsl": {
    "h": 276.96,
    "s": 78.616,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38614,
    "c": 0.18402,
    "h": 306.8
  },
  "luminance": 0.04734
}

Semantic roles & 50–950 ramp

primary
#5E118E
secondary
#6DC238
accent
#F5337D
background
#F9F5FA
surface
#F2E9F5
border
#CCC5CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5E118E

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

Preview Lab → · Contrast checker → · Palette generator →

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