#5E2AA2#5E2AA2

#5E2AA2 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.7% C 0.181 H 298.0°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#5E2AA2
RGBrgb(94, 42, 162)
HSLhsl(266, 59%, 40%)
HSVhsv(266, 74%, 64%)
CMYKcmyk(42%, 74.1%, 0%, 36.5%)
CIE-LABlab(30.98, 48.07, -55.77)
CIE-LCHlch(30.98, 73.63, 310.76°)
OKLaboklab(42.65% 0.0847 -0.1595)
OKLCHoklch(42.65% 0.181 298)
XYZxyz(11.9640, 6.6440, 34.8275)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2AA2 #6EA22A
analogous
#2A32A2 #5E2AA2 #9A2AA2
triadic
#5E2AA2 #A25E2A #2AA25E
tetradic
#5E2AA2 #A22A32 #6EA22A #2AA29A
square
#5E2AA2 #A22A32 #6EA22A #2AA29A
split-complementary
#5E2AA2 #A29A2A #32A22A
monochromatic
#261141 #421D71 #5E2AA2 #7B3DCD #9C6DD9

Accessibility & contrast

On white

9.02
#5E2AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E2AA2
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2AA2#FFFFFF#000000##FFFFFF
##5E2AA21.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A5
Deuteranopia (green-blind)
#0048A0
Tritanopia (blue-blind)
#4D4964
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5e2aa2;
/* rgb */ color: rgb(94, 42, 162);
/* oklch */ color: oklch(42.7% 0.181 298.0);
Tailwind
colors: {
  custom: {
    50: '#9269be',
    500: '#5e2aa2',
    950: '#000000',
  },
}
SCSS
$custom: #5e2aa2;
$custom-light: #9269be;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2aa2",
  "rgb": {
    "r": 94,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 266,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.42654,
    "c": 0.18056,
    "h": 298
  },
  "luminance": 0.06644
}

Semantic roles & 50–950 ramp

primary
#5E2AA2
secondary
#9AC068
accent
#E2469E
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5E2AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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