#5E2CAB#5E2CAB

#5E2CAB is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.7% C 0.188 H 295.4°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#5E2CAB
RGBrgb(94, 44, 171)
HSLhsl(264, 59%, 42%)
HSVhsv(264, 74%, 67%)
CMYKcmyk(45%, 74.3%, 0%, 32.9%)
CIE-LABlab(32.08, 49.48, -59.40)
CIE-LCHlch(32.08, 77.31, 309.79°)
OKLaboklab(43.67% 0.0808 -0.1701)
OKLCHoklch(43.67% 0.188 295.4)
XYZxyz(12.8655, 7.1210, 39.2168)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2CAB #79AB2C
analogous
#2C3AAB #5E2CAB #9E2CAB
triadic
#5E2CAB #AB5E2C #2CAB5E
tetradic
#5E2CAB #AB2C3A #79AB2C #2CAB9E
square
#5E2CAB #AB2C3A #79AB2C #2CAB9E
split-complementary
#5E2CAB #AB9E2C #3AAB2C
monochromatic
#28134A #431F7A #5E2CAB #7B45CF #9E76DC

Accessibility & contrast

On white

8.66
#5E2CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#5E2CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2CAB
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2CAB#FFFFFF#000000##FFFFFF
##5E2CAB1.008.662.428.66
#FFFFFF8.661.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAF
Deuteranopia (green-blind)
#004AA9
Tritanopia (blue-blind)
#494D69
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5e2cab;
/* rgb */ color: rgb(94, 44, 171);
/* oklch */ color: oklch(43.7% 0.188 295.4);
Tailwind
colors: {
  custom: {
    50: '#936ac5',
    500: '#5e2cab',
    950: '#000000',
  },
}
SCSS
$custom: #5e2cab;
$custom-light: #936ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2cab",
  "rgb": {
    "r": 94,
    "g": 44,
    "b": 171
  },
  "hsl": {
    "h": 263.622,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.43666,
    "c": 0.18832,
    "h": 295.4
  },
  "luminance": 0.07121
}

Semantic roles & 50–950 ramp

primary
#5E2CAB
secondary
#A2C36F
accent
#E246A5
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5E2CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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