#5E2697#5E2697

#5E2697 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.3% C 0.173 H 301.7°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#5E2697
RGBrgb(94, 38, 151)
HSLhsl(270, 60%, 37%)
HSVhsv(270, 75%, 59%)
CMYKcmyk(37.7%, 74.8%, 0%, 40.8%)
CIE-LABlab(29.41, 47.13, -51.64)
CIE-LCHlch(29.41, 69.91, 312.39°)
OKLaboklab(41.26% 0.091 -0.1473)
OKLCHoklch(41.26% 0.173 301.7)
XYZxyz(10.8938, 6.0002, 29.8564)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2697 #5F9726
analogous
#262697 #5E2697 #972697
triadic
#5E2697 #975E26 #26975E
tetradic
#5E2697 #972626 #5F9726 #269797
square
#5E2697 #972626 #5F9726 #269797
split-complementary
#5E2697 #979726 #269726
monochromatic
#210D35 #401A66 #5E2697 #7C32C8 #9B60D7

Accessibility & contrast

On white

9.55
#5E2697 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5E2697 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2697
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2697#FFFFFF#000000##FFFFFF
##5E26971.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459A
Deuteranopia (green-blind)
#004595
Tritanopia (blue-blind)
#52425C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5e2697;
/* rgb */ color: rgb(94, 38, 151);
/* oklch */ color: oklch(41.3% 0.173 301.7);
Tailwind
colors: {
  custom: {
    50: '#9166b6',
    500: '#5e2697',
    950: '#000000',
  },
}
SCSS
$custom: #5e2697;
$custom-light: #9166b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2697",
  "rgb": {
    "r": 94,
    "g": 38,
    "b": 151
  },
  "hsl": {
    "h": 269.735,
    "s": 59.788,
    "l": 37.059
  },
  "oklch": {
    "l": 0.41262,
    "c": 0.17311,
    "h": 301.7
  },
  "luminance": 0.06
}

Semantic roles & 50–950 ramp

primary
#5E2697
secondary
#8DBC5C
accent
#E34595
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E2697

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

Preview Lab → · Contrast checker → · Palette generator →

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