#5E2BAA#5E2BAA

#5E2BAA is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.5% C 0.188 H 295.8°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#5E2BAA
RGBrgb(94, 43, 170)
HSLhsl(264, 60%, 42%)
HSVhsv(264, 75%, 67%)
CMYKcmyk(44.7%, 74.7%, 0%, 33.3%)
CIE-LABlab(31.83, 49.69, -59.21)
CIE-LCHlch(31.83, 77.30, 310.00°)
OKLaboklab(43.46% 0.0819 -0.1696)
OKLCHoklch(43.46% 0.188 295.8)
XYZxyz(12.7337, 7.0094, 38.7045)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2BAA #77AA2B
analogous
#2B38AA #5E2BAA #9D2BAA
triadic
#5E2BAA #AA5E2B #2BAA5E
tetradic
#5E2BAA #AA2B38 #77AA2B #2BAA9D
square
#5E2BAA #AA2B38 #77AA2B #2BAA9D
split-complementary
#5E2BAA #AA9D2B #38AA2B
monochromatic
#281248 #431F79 #5E2BAA #7B43CF #9D74DC

Accessibility & contrast

On white

8.74
#5E2BAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5E2BAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2BAA
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2BAA#FFFFFF#000000##FFFFFF
##5E2BAA1.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAE
Deuteranopia (green-blind)
#0049A8
Tritanopia (blue-blind)
#494C68
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5e2baa;
/* rgb */ color: rgb(94, 43, 170);
/* oklch */ color: oklch(43.5% 0.188 295.8);
Tailwind
colors: {
  custom: {
    50: '#936ac4',
    500: '#5e2baa',
    950: '#000000',
  },
}
SCSS
$custom: #5e2baa;
$custom-light: #936ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2baa",
  "rgb": {
    "r": 94,
    "g": 43,
    "b": 170
  },
  "hsl": {
    "h": 264.094,
    "s": 59.624,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43461,
    "c": 0.18832,
    "h": 295.8
  },
  "luminance": 0.0701
}

Semantic roles & 50–950 ramp

primary
#5E2BAA
secondary
#A1C36E
accent
#E345A3
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5E2BAA

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

Preview Lab → · Contrast checker → · Palette generator →

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