#5E2691#5E2691

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

Color values

HEX#5E2691
RGBrgb(94, 38, 145)
HSLhsl(271, 58%, 36%)
HSVhsv(271, 74%, 57%)
CMYKcmyk(35.2%, 73.8%, 0%, 43.1%)
CIE-LABlab(28.93, 45.64, -48.74)
CIE-LCHlch(28.93, 66.77, 313.12°)
OKLaboklab(40.77% 0.0922 -0.1388)
OKLCHoklch(40.77% 0.167 303.6)
XYZxyz(10.4189, 5.8103, 27.3552)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2691 #599126
analogous
#282691 #5E2691 #91268E
triadic
#5E2691 #915E26 #26915E
tetradic
#5E2691 #912826 #599126 #268E91
square
#5E2691 #912826 #599126 #268E91
split-complementary
#5E2691 #8E9126 #269128
monochromatic
#1F0D30 #3F1961 #5E2691 #7D33C1 #9B5DD5

Accessibility & contrast

On white

9.71
#5E2691 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5E2691 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2691
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2691#FFFFFF#000000##FFFFFF
##5E26911.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e2691;
/* rgb */ color: rgb(94, 38, 145);
/* oklch */ color: oklch(40.8% 0.167 303.6);
Tailwind
colors: {
  custom: {
    50: '#9066b2',
    500: '#5e2691',
    950: '#000000',
  },
}
SCSS
$custom: #5e2691;
$custom-light: #9066b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2691",
  "rgb": {
    "r": 94,
    "g": 38,
    "b": 145
  },
  "hsl": {
    "h": 271.402,
    "s": 58.47,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40768,
    "c": 0.1666,
    "h": 303.6
  },
  "luminance": 0.0581
}

Semantic roles & 50–950 ramp

primary
#5E2691
secondary
#87BA59
accent
#E24690
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E2691

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

Preview Lab → · Contrast checker → · Palette generator →

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