#5E2AA3#5E2AA3

#5E2AA3 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.7% C 0.182 H 297.7°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#5E2AA3
RGBrgb(94, 42, 163)
HSLhsl(266, 59%, 40%)
HSVhsv(266, 74%, 64%)
CMYKcmyk(42.3%, 74.2%, 0%, 36.1%)
CIE-LABlab(31.07, 48.33, -56.24)
CIE-LCHlch(31.07, 74.16, 310.67°)
OKLaboklab(42.74% 0.0845 -0.1608)
OKLCHoklch(42.74% 0.182 297.7)
XYZxyz(12.0532, 6.6797, 35.2975)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2AA3 #6FA32A
analogous
#2A33A3 #5E2AA3 #9A2AA3
triadic
#5E2AA3 #A35E2A #2AA35E
tetradic
#5E2AA3 #A32A33 #6FA32A #2AA39A
square
#5E2AA3 #A32A33 #6FA32A #2AA39A
split-complementary
#5E2AA3 #A39A2A #33A32A
monochromatic
#261142 #421D72 #5E2AA3 #7B3DCD #9C6EDA

Accessibility & contrast

On white

8.99
#5E2AA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5E2AA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2AA3
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2AA3#FFFFFF#000000##FFFFFF
##5E2AA31.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e2aa3;
/* rgb */ color: rgb(94, 42, 163);
/* oklch */ color: oklch(42.7% 0.182 297.7);
Tailwind
colors: {
  custom: {
    50: '#9269bf',
    500: '#5e2aa3',
    950: '#000000',
  },
}
SCSS
$custom: #5e2aa3;
$custom-light: #9269bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2aa3",
  "rgb": {
    "r": 94,
    "g": 42,
    "b": 163
  },
  "hsl": {
    "h": 265.785,
    "s": 59.024,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42739,
    "c": 0.18167,
    "h": 297.7
  },
  "luminance": 0.0668
}

Semantic roles & 50–950 ramp

primary
#5E2AA3
secondary
#9BC068
accent
#E2469F
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5E2AA3

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

Preview Lab → · Contrast checker → · Palette generator →

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