#5E2792#5E2792

#5E2792 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.0% C 0.166 H 303.1°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#5E2792
RGBrgb(94, 39, 146)
HSLhsl(271, 58%, 36%)
HSVhsv(271, 73%, 57%)
CMYKcmyk(35.6%, 73.3%, 0%, 42.7%)
CIE-LABlab(29.17, 45.42, -48.95)
CIE-LCHlch(29.17, 66.78, 312.85°)
OKLaboklab(40.97% 0.091 -0.1394)
OKLCHoklch(40.97% 0.166 303.1)
XYZxyz(10.5287, 5.9060, 27.7739)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2792 #5B9227
analogous
#292792 #5E2792 #922791
triadic
#5E2792 #925E27 #27925E
tetradic
#5E2792 #922927 #5B9227 #279192
square
#5E2792 #922927 #5B9227 #279192
split-complementary
#5E2792 #919227 #279229
monochromatic
#200D31 #3F1A62 #5E2792 #7D34C2 #9B5FD4

Accessibility & contrast

On white

9.63
#5E2792 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5E2792 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2792
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2792#FFFFFF#000000##FFFFFF
##5E27921.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004495
Deuteranopia (green-blind)
#004490
Tritanopia (blue-blind)
#54415A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5e2792;
/* rgb */ color: rgb(94, 39, 146);
/* oklch */ color: oklch(41.0% 0.166 303.1);
Tailwind
colors: {
  custom: {
    50: '#9066b3',
    500: '#5e2792',
    950: '#000000',
  },
}
SCSS
$custom: #5e2792;
$custom-light: #9066b3;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2792",
  "rgb": {
    "r": 94,
    "g": 39,
    "b": 146
  },
  "hsl": {
    "h": 270.841,
    "s": 57.838,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40967,
    "c": 0.16646,
    "h": 303.1
  },
  "luminance": 0.05906
}

Semantic roles & 50–950 ramp

primary
#5E2792
secondary
#89BA5B
accent
#E14792
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E2792

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

Preview Lab → · Contrast checker → · Palette generator →

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