#5E2189#5E2189

#5E2189 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.6% C 0.164 H 307.0°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#5E2189
RGBrgb(94, 33, 137)
HSLhsl(275, 61%, 33%)
HSVhsv(275, 76%, 54%)
CMYKcmyk(31.4%, 75.9%, 0%, 46.3%)
CIE-LABlab(27.50, 45.95, -46.10)
CIE-LCHlch(27.50, 65.09, 314.91°)
OKLaboklab(39.56% 0.0988 -0.131)
OKLCHoklch(39.56% 0.164 307)
XYZxyz(9.6743, 5.2737, 24.1703)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2189 #4C8921
analogous
#2A2189 #5E2189 #892180
triadic
#5E2189 #895E21 #21895E
tetradic
#5E2189 #892A21 #4C8921 #218089
square
#5E2189 #892A21 #4C8921 #218089
split-complementary
#5E2189 #808921 #21892A
monochromatic
#1A0926 #3C1558 #5E2189 #802DBA #9E50D5

Accessibility & contrast

On white

10.22
#5E2189 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5E2189 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2189
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2189#FFFFFF#000000##FFFFFF
##5E21891.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8C
Deuteranopia (green-blind)
#004187
Tritanopia (blue-blind)
#573A53
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5e2189;
/* rgb */ color: rgb(94, 33, 137);
/* oklch */ color: oklch(39.6% 0.164 307.0);
Tailwind
colors: {
  custom: {
    50: '#9063ac',
    500: '#5e2189',
    950: '#000000',
  },
}
SCSS
$custom: #5e2189;
$custom-light: #9063ac;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2189",
  "rgb": {
    "r": 94,
    "g": 33,
    "b": 137
  },
  "hsl": {
    "h": 275.192,
    "s": 61.176,
    "l": 33.333
  },
  "oklch": {
    "l": 0.39559,
    "c": 0.16407,
    "h": 307
  },
  "luminance": 0.05274
}

Semantic roles & 50–950 ramp

primary
#5E2189
secondary
#7AB84E
accent
#E44486
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5E2189

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

Preview Lab → · Contrast checker → · Palette generator →

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