#5E2AA0#5E2AA0

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

Color values

HEX#5E2AA0
RGBrgb(94, 42, 160)
HSLhsl(266, 58%, 40%)
HSVhsv(266, 74%, 63%)
CMYKcmyk(41.3%, 73.8%, 0%, 37.3%)
CIE-LABlab(30.82, 47.55, -54.84)
CIE-LCHlch(30.82, 72.58, 310.93°)
OKLaboklab(42.48% 0.0852 -0.1567)
OKLCHoklch(42.48% 0.178 298.5)
XYZxyz(11.7876, 6.5735, 33.8987)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2AA0 #6CA02A
analogous
#2A31A0 #5E2AA0 #992AA0
triadic
#5E2AA0 #A05E2A #2AA05E
tetradic
#5E2AA0 #A02A31 #6CA02A #2AA099
square
#5E2AA0 #A02A31 #6CA02A #2AA099
split-complementary
#5E2AA0 #A0992A #31A02A
monochromatic
#25113F #421D70 #5E2AA0 #7B3CCC #9C6CD8

Accessibility & contrast

On white

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

On black

2.31
#5E2AA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5E2AA0#FFFFFF#000000##FFFFFF
##5E2AA01.009.072.319.07
#FFFFFF9.071.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A3
Deuteranopia (green-blind)
#00479E
Tritanopia (blue-blind)
#4E4862
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5e2aa0;
/* rgb */ color: rgb(94, 42, 160);
/* oklch */ color: oklch(42.5% 0.178 298.5);
Tailwind
colors: {
  custom: {
    50: '#9269bd',
    500: '#5e2aa0',
    950: '#000000',
  },
}
SCSS
$custom: #5e2aa0;
$custom-light: #9269bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2aa0",
  "rgb": {
    "r": 94,
    "g": 42,
    "b": 160
  },
  "hsl": {
    "h": 266.441,
    "s": 58.416,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42484,
    "c": 0.17834,
    "h": 298.5
  },
  "luminance": 0.06574
}

Semantic roles & 50–950 ramp

primary
#5E2AA0
secondary
#98BF67
accent
#E2469D
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5E2AA0

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

Preview Lab → · Contrast checker → · Palette generator →

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