#5E2D9C#5E2D9C

#5E2D9C is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.5% C 0.170 H 299.2°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#5E2D9C
RGBrgb(94, 45, 156)
HSLhsl(266, 55%, 39%)
HSVhsv(266, 71%, 61%)
CMYKcmyk(39.7%, 71.2%, 0%, 38.8%)
CIE-LABlab(31.01, 45.05, -52.09)
CIE-LCHlch(31.01, 68.86, 310.85°)
OKLaboklab(42.52% 0.0829 -0.1486)
OKLCHoklch(42.52% 0.17 299.2)
XYZxyz(11.5537, 6.6566, 32.1222)
Luminance0.0666 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2D9C #6B9C2D
analogous
#2D349C #5E2D9C #962D9C
triadic
#5E2D9C #9C5E2D #2D9C5E
tetradic
#5E2D9C #9C2D34 #6B9C2D #2D9C96
square
#5E2D9C #9C2D34 #6B9C2D #2D9C96
split-complementary
#5E2D9C #9C962D #349C2D
monochromatic
#25123D #411F6D #5E2D9C #7B3FC8 #9C6ED5

Accessibility & contrast

On white

9.01
#5E2D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5E2D9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2D9C
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2D9C#FFFFFF#000000##FFFFFF
##5E2D9C1.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499F
Deuteranopia (green-blind)
#00489A
Tritanopia (blue-blind)
#4F4861
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5e2d9c;
/* rgb */ color: rgb(94, 45, 156);
/* oklch */ color: oklch(42.5% 0.170 299.2);
Tailwind
colors: {
  custom: {
    50: '#916aba',
    500: '#5e2d9c',
    950: '#000000',
  },
}
SCSS
$custom: #5e2d9c;
$custom-light: #916aba;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2d9c",
  "rgb": {
    "r": 94,
    "g": 45,
    "b": 156
  },
  "hsl": {
    "h": 266.486,
    "s": 55.224,
    "l": 39.412
  },
  "oklch": {
    "l": 0.42522,
    "c": 0.17021,
    "h": 299.2
  },
  "luminance": 0.06657
}

Semantic roles & 50–950 ramp

primary
#5E2D9C
secondary
#97BC68
accent
#DF499D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5E2D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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