#5E1988#5E1988

#5E1988 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.172 H 308.3°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#5E1988
RGBrgb(94, 25, 136)
HSLhsl(277, 69%, 32%)
HSVhsv(277, 82%, 53%)
CMYKcmyk(30.9%, 81.6%, 0%, 46.7%)
CIE-LABlab(26.31, 48.90, -47.41)
CIE-LCHlch(26.31, 68.11, 315.89°)
OKLaboklab(38.7% 0.1064 -0.1347)
OKLCHoklch(38.7% 0.172 308.3)
XYZxyz(9.4067, 4.8527, 23.7289)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1988 #438819
analogous
#261988 #5E1988 #88197B
triadic
#5E1988 #885E19 #19885E
tetradic
#5E1988 #882619 #438819 #197B88
square
#5E1988 #882619 #438819 #197B88
split-complementary
#5E1988 #7B8819 #198826
monochromatic
#170621 #3A0F54 #5E1988 #8223BC #A140DC

Accessibility & contrast

On white

10.66
#5E1988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E1988
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1988#FFFFFF#000000##FFFFFF
##5E19881.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8B
Deuteranopia (green-blind)
#003F86
Tritanopia (blue-blind)
#573651
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5e1988;
/* rgb */ color: rgb(94, 25, 136);
/* oklch */ color: oklch(38.7% 0.172 308.3);
Tailwind
colors: {
  custom: {
    50: '#905fab',
    500: '#5e1988',
    950: '#000000',
  },
}
SCSS
$custom: #5e1988;
$custom-light: #905fab;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1988",
  "rgb": {
    "r": 94,
    "g": 25,
    "b": 136
  },
  "hsl": {
    "h": 277.297,
    "s": 68.944,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38697,
    "c": 0.17166,
    "h": 308.3
  },
  "luminance": 0.04853
}

Semantic roles & 50–950 ramp

primary
#5E1988
secondary
#70BB41
accent
#EC3C7F
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E1988

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

Preview Lab → · Contrast checker → · Palette generator →

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