#5E178B#5E178B

#5E178B is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.176 H 307.4°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#5E178B
RGBrgb(94, 23, 139)
HSLhsl(277, 72%, 32%)
HSVhsv(277, 83%, 55%)
CMYKcmyk(32.4%, 83.5%, 0%, 45.5%)
CIE-LABlab(26.32, 50.28, -49.26)
CIE-LCHlch(26.32, 70.39, 315.59°)
OKLaboklab(38.78% 0.1071 -0.1402)
OKLCHoklch(38.78% 0.176 307.4)
XYZxyz(9.5817, 4.8567, 24.8538)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E178B #448B17
analogous
#24178B #5E178B #8B177E
triadic
#5E178B #8B5E17 #178B5E
tetradic
#5E178B #8B2417 #448B17 #177E8B
square
#5E178B #8B2417 #448B17 #177E8B
split-complementary
#5E178B #7E8B17 #178B24
monochromatic
#170622 #3A0E56 #5E178B #8220C0 #A03DDF

Accessibility & contrast

On white

10.65
#5E178B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E178B
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E178B#FFFFFF#000000##FFFFFF
##5E178B1.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003F89
Tritanopia (blue-blind)
#563652
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5e178b;
/* rgb */ color: rgb(94, 23, 139);
/* oklch */ color: oklch(38.8% 0.176 307.4);
Tailwind
colors: {
  custom: {
    50: '#915eae',
    500: '#5e178b',
    950: '#000000',
  },
}
SCSS
$custom: #5e178b;
$custom-light: #915eae;
$custom-dark: #000000;
JSON
{
  "hex": "#5e178b",
  "rgb": {
    "r": 94,
    "g": 23,
    "b": 139
  },
  "hsl": {
    "h": 276.724,
    "s": 71.605,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38783,
    "c": 0.17642,
    "h": 307.4
  },
  "luminance": 0.04857
}

Semantic roles & 50–950 ramp

primary
#5E178B
secondary
#71BF3F
accent
#EE3980
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E178B

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

Preview Lab → · Contrast checker → · Palette generator →

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