#5E2C9C#5E2C9C

#5E2C9C is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.4% C 0.171 H 299.3°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#5E2C9C
RGBrgb(94, 44, 156)
HSLhsl(267, 56%, 39%)
HSVhsv(267, 72%, 61%)
CMYKcmyk(39.7%, 71.8%, 0%, 38.8%)
CIE-LABlab(30.83, 45.54, -52.38)
CIE-LCHlch(30.83, 69.41, 311.01°)
OKLaboklab(42.4% 0.084 -0.1495)
OKLCHoklch(42.4% 0.171 299.3)
XYZxyz(11.5160, 6.5812, 32.1096)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2C9C #6A9C2C
analogous
#2C329C #5E2C9C #962C9C
triadic
#5E2C9C #9C5E2C #2C9C5E
tetradic
#5E2C9C #9C2C32 #6A9C2C #2C9C96
square
#5E2C9C #9C2C32 #6A9C2C #2C9C96
split-complementary
#5E2C9C #9C962C #329C2C
monochromatic
#24113D #411F6C #5E2C9C #7B3DC8 #9C6DD6

Accessibility & contrast

On white

9.07
#5E2C9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5E2C9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2C9C
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2C9C#FFFFFF#000000##FFFFFF
##5E2C9C1.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e2c9c;
/* rgb */ color: rgb(94, 44, 156);
/* oklch */ color: oklch(42.4% 0.171 299.3);
Tailwind
colors: {
  custom: {
    50: '#9169ba',
    500: '#5e2c9c',
    950: '#000000',
  },
}
SCSS
$custom: #5e2c9c;
$custom-light: #9169ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2c9c",
  "rgb": {
    "r": 94,
    "g": 44,
    "b": 156
  },
  "hsl": {
    "h": 266.786,
    "s": 56,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42395,
    "c": 0.17145,
    "h": 299.3
  },
  "luminance": 0.06581
}

Semantic roles & 50–950 ramp

primary
#5E2C9C
secondary
#96BD67
accent
#DF499C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5E2C9C

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

Preview Lab → · Contrast checker → · Palette generator →

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