#5E2AA8#5E2AA8

#5E2AA8 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.2% C 0.187 H 296.4°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#5E2AA8
RGBrgb(94, 42, 168)
HSLhsl(265, 60%, 41%)
HSVhsv(265, 75%, 66%)
CMYKcmyk(44%, 75%, 0%, 34.1%)
CIE-LABlab(31.49, 49.63, -58.56)
CIE-LCHlch(31.49, 76.76, 310.28°)
OKLaboklab(43.17% 0.0833 -0.1676)
OKLCHoklch(43.17% 0.187 296.4)
XYZxyz(12.5101, 6.8625, 37.7037)
Luminance0.0686 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2AA8 #74A82A
analogous
#2A35A8 #5E2AA8 #9D2AA8
triadic
#5E2AA8 #A85E2A #2AA85E
tetradic
#5E2AA8 #A82A35 #74A82A #2AA89D
square
#5E2AA8 #A82A35 #74A82A #2AA89D
split-complementary
#5E2AA8 #A89D2A #35A82A
monochromatic
#271246 #431E77 #5E2AA8 #7B40CF #9D71DB

Accessibility & contrast

On white

8.85
#5E2AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5E2AA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2AA8
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2AA8#FFFFFF#000000##FFFFFF
##5E2AA81.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAC
Deuteranopia (green-blind)
#0048A6
Tritanopia (blue-blind)
#4A4B67
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5e2aa8;
/* rgb */ color: rgb(94, 42, 168);
/* oklch */ color: oklch(43.2% 0.187 296.4);
Tailwind
colors: {
  custom: {
    50: '#9369c3',
    500: '#5e2aa8',
    950: '#000000',
  },
}
SCSS
$custom: #5e2aa8;
$custom-light: #9369c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2aa8",
  "rgb": {
    "r": 94,
    "g": 42,
    "b": 168
  },
  "hsl": {
    "h": 264.762,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.43171,
    "c": 0.1872,
    "h": 296.4
  },
  "luminance": 0.06863
}

Semantic roles & 50–950 ramp

primary
#5E2AA8
secondary
#9FC36B
accent
#E345A2
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5E2AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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