#5E2696#5E2696

#5E2696 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.2% C 0.172 H 302.0°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#5E2696
RGBrgb(94, 38, 150)
HSLhsl(270, 60%, 37%)
HSVhsv(270, 75%, 59%)
CMYKcmyk(37.3%, 74.7%, 0%, 41.2%)
CIE-LABlab(29.33, 46.88, -51.16)
CIE-LCHlch(29.33, 69.39, 312.50°)
OKLaboklab(41.18% 0.0912 -0.1459)
OKLCHoklch(41.18% 0.172 302)
XYZxyz(10.8129, 5.9679, 29.4305)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2696 #5E9626
analogous
#262696 #5E2696 #962696
triadic
#5E2696 #965E26 #26965E
tetradic
#5E2696 #962626 #5E9626 #269696
square
#5E2696 #962626 #5E9626 #269696
split-complementary
#5E2696 #969626 #269626
monochromatic
#210D34 #3F1A65 #5E2696 #7D32C7 #9B60D7

Accessibility & contrast

On white

9.57
#5E2696 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5E2696 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2696
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2696#FFFFFF#000000##FFFFFF
##5E26961.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004499
Deuteranopia (green-blind)
#004594
Tritanopia (blue-blind)
#52425C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5e2696;
/* rgb */ color: rgb(94, 38, 150);
/* oklch */ color: oklch(41.2% 0.172 302.0);
Tailwind
colors: {
  custom: {
    50: '#9166b6',
    500: '#5e2696',
    950: '#000000',
  },
}
SCSS
$custom: #5e2696;
$custom-light: #9166b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2696",
  "rgb": {
    "r": 94,
    "g": 38,
    "b": 150
  },
  "hsl": {
    "h": 270,
    "s": 59.574,
    "l": 36.863
  },
  "oklch": {
    "l": 0.41179,
    "c": 0.17202,
    "h": 302
  },
  "luminance": 0.05968
}

Semantic roles & 50–950 ramp

primary
#5E2696
secondary
#8CBC5C
accent
#E34594
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E2696

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

Preview Lab → · Contrast checker → · Palette generator →

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