#5E2097#5E2097

#5E2097 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.6% C 0.180 H 302.5°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#5E2097
RGBrgb(94, 32, 151)
HSLhsl(271, 65%, 36%)
HSVhsv(271, 79%, 59%)
CMYKcmyk(37.7%, 78.8%, 0%, 40.8%)
CIE-LABlab(28.50, 49.73, -53.12)
CIE-LCHlch(28.50, 72.76, 313.11°)
OKLaboklab(40.62% 0.0965 -0.1516)
OKLCHoklch(40.62% 0.18 302.5)
XYZxyz(10.7172, 5.6470, 29.7975)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2097 #599720
analogous
#232097 #5E2097 #972094
triadic
#5E2097 #975E20 #20975E
tetradic
#5E2097 #972320 #599720 #209497
square
#5E2097 #972320 #599720 #209497
split-complementary
#5E2097 #949720 #209723
monochromatic
#1F0B32 #3F1564 #5E2097 #7D2BC9 #9B56DB

Accessibility & contrast

On white

9.86
#5E2097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5E2097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2097
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2097#FFFFFF#000000##FFFFFF
##5E20971.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#004395
Tritanopia (blue-blind)
#523F5B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5e2097;
/* rgb */ color: rgb(94, 32, 151);
/* oklch */ color: oklch(40.6% 0.180 302.5);
Tailwind
colors: {
  custom: {
    50: '#9163b6',
    500: '#5e2097',
    950: '#000000',
  },
}
SCSS
$custom: #5e2097;
$custom-light: #9163b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2097",
  "rgb": {
    "r": 94,
    "g": 32,
    "b": 151
  },
  "hsl": {
    "h": 271.261,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40623,
    "c": 0.17967,
    "h": 302.5
  },
  "luminance": 0.05647
}

Semantic roles & 50–950 ramp

primary
#5E2097
secondary
#87BF54
accent
#E84090
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E2097

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

Preview Lab → · Contrast checker → · Palette generator →

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