#5E2E8F#5E2E8F

#5E2E8F is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.6% C 0.154 H 303.0°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#5E2E8F
RGBrgb(94, 46, 143)
HSLhsl(270, 51%, 37%)
HSVhsv(270, 68%, 56%)
CMYKcmyk(34.3%, 67.8%, 0%, 43.9%)
CIE-LABlab(30.20, 41.16, -45.45)
CIE-LCHlch(30.20, 61.32, 312.17°)
OKLaboklab(41.63% 0.0837 -0.1291)
OKLCHoklch(41.63% 0.154 303)
XYZxyz(10.5499, 6.3168, 26.6447)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2E8F #5F8F2E
analogous
#2E2E8F #5E2E8F #8F2E8F
triadic
#5E2E8F #8F5E2E #2E8F5E
tetradic
#5E2E8F #8F2E2E #5F8F2E #2E8F8F
square
#5E2E8F #8F2E2E #5F8F2E #2E8F8F
split-complementary
#5E2E8F #8F8F2E #2E8F2E
monochromatic
#211032 #401F61 #5E2E8F #7C3DBD #9B69CF

Accessibility & contrast

On white

9.28
#5E2E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5E2E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2E8F
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2E8F#FFFFFF#000000##FFFFFF
##5E2E8F1.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004692
Deuteranopia (green-blind)
#07478D
Tritanopia (blue-blind)
#54445A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5e2e8f;
/* rgb */ color: rgb(94, 46, 143);
/* oklch */ color: oklch(41.6% 0.154 303.0);
Tailwind
colors: {
  custom: {
    50: '#906ab0',
    500: '#5e2e8f',
    950: '#000000',
  },
}
SCSS
$custom: #5e2e8f;
$custom-light: #906ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2e8f",
  "rgb": {
    "r": 94,
    "g": 46,
    "b": 143
  },
  "hsl": {
    "h": 269.691,
    "s": 51.323,
    "l": 37.059
  },
  "oklch": {
    "l": 0.41626,
    "c": 0.15389,
    "h": 303
  },
  "luminance": 0.06317
}

Semantic roles & 50–950 ramp

primary
#5E2E8F
secondary
#8DB663
accent
#DB4D95
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5E2E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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