#5E2AA5#5E2AA5

#5E2AA5 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.9% C 0.184 H 297.2°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#5E2AA5
RGBrgb(94, 42, 165)
HSLhsl(265, 59%, 41%)
HSVhsv(265, 75%, 65%)
CMYKcmyk(43%, 74.5%, 0%, 35.3%)
CIE-LABlab(31.24, 48.85, -57.17)
CIE-LCHlch(31.24, 75.20, 310.51°)
OKLaboklab(42.91% 0.084 -0.1636)
OKLCHoklch(42.91% 0.184 297.2)
XYZxyz(12.2338, 6.7520, 36.2487)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2AA5 #71A52A
analogous
#2A33A5 #5E2AA5 #9B2AA5
triadic
#5E2AA5 #A55E2A #2AA55E
tetradic
#5E2AA5 #A52A33 #71A52A #2AA59B
square
#5E2AA5 #A52A33 #71A52A #2AA59B
split-complementary
#5E2AA5 #A59B2A #33A52A
monochromatic
#261143 #421E74 #5E2AA5 #7B3ECE #9C6FDA

Accessibility & contrast

On white

8.93
#5E2AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5E2AA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2AA5
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2AA5#FFFFFF#000000##FFFFFF
##5E2AA51.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA9
Deuteranopia (green-blind)
#0048A3
Tritanopia (blue-blind)
#4C4A65
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5e2aa5;
/* rgb */ color: rgb(94, 42, 165);
/* oklch */ color: oklch(42.9% 0.184 297.2);
Tailwind
colors: {
  custom: {
    50: '#9269c1',
    500: '#5e2aa5',
    950: '#000000',
  },
}
SCSS
$custom: #5e2aa5;
$custom-light: #9269c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2aa5",
  "rgb": {
    "r": 94,
    "g": 42,
    "b": 165
  },
  "hsl": {
    "h": 265.366,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42911,
    "c": 0.18389,
    "h": 297.2
  },
  "luminance": 0.06752
}

Semantic roles & 50–950 ramp

primary
#5E2AA5
secondary
#9CC169
accent
#E345A0
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5E2AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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