#5E2790#5E2790

#5E2790 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.8% C 0.164 H 303.8°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#5E2790
RGBrgb(94, 39, 144)
HSLhsl(271, 57%, 36%)
HSVhsv(271, 73%, 56%)
CMYKcmyk(34.7%, 72.9%, 0%, 43.5%)
CIE-LABlab(29.02, 44.92, -47.98)
CIE-LCHlch(29.02, 65.72, 313.11°)
OKLaboklab(40.81% 0.0914 -0.1365)
OKLCHoklch(40.81% 0.164 303.8)
XYZxyz(10.3745, 5.8444, 26.9617)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2790 #599027
analogous
#2A2790 #5E2790 #90278D
triadic
#5E2790 #905E27 #27905E
tetradic
#5E2790 #902A27 #599027 #278D90
square
#5E2790 #902A27 #599027 #278D90
split-complementary
#5E2790 #8D9027 #27902A
monochromatic
#1F0D30 #3F1A60 #5E2790 #7D34C0 #9B5ED3

Accessibility & contrast

On white

9.68
#5E2790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5E2790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2790
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2790#FFFFFF#000000##FFFFFF
##5E27901.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004393
Deuteranopia (green-blind)
#00448E
Tritanopia (blue-blind)
#544059
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5e2790;
/* rgb */ color: rgb(94, 39, 144);
/* oklch */ color: oklch(40.8% 0.164 303.8);
Tailwind
colors: {
  custom: {
    50: '#9066b1',
    500: '#5e2790',
    950: '#000000',
  },
}
SCSS
$custom: #5e2790;
$custom-light: #9066b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2790",
  "rgb": {
    "r": 94,
    "g": 39,
    "b": 144
  },
  "hsl": {
    "h": 271.429,
    "s": 57.377,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40805,
    "c": 0.16427,
    "h": 303.8
  },
  "luminance": 0.05844
}

Semantic roles & 50–950 ramp

primary
#5E2790
secondary
#87B95A
accent
#E14790
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E2790

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

Preview Lab → · Contrast checker → · Palette generator →

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