#5E2BA3#5E2BA3

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

Color values

HEX#5E2BA3
RGBrgb(94, 43, 163)
HSLhsl(266, 58%, 40%)
HSVhsv(266, 74%, 64%)
CMYKcmyk(42.3%, 73.6%, 0%, 36.1%)
CIE-LABlab(31.23, 47.85, -55.97)
CIE-LCHlch(31.23, 73.64, 310.53°)
OKLaboklab(42.86% 0.0835 -0.16)
OKLCHoklch(42.86% 0.181 297.6)
XYZxyz(12.0891, 6.7516, 35.3095)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2BA3 #70A32B
analogous
#2B34A3 #5E2BA3 #9A2BA3
triadic
#5E2BA3 #A35E2B #2BA35E
tetradic
#5E2BA3 #A32B34 #70A32B #2BA39A
square
#5E2BA3 #A32B34 #70A32B #2BA39A
split-complementary
#5E2BA3 #A39A2B #34A32B
monochromatic
#261142 #421E73 #5E2BA3 #7B3FCC #9C6FD9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5E2BA3#FFFFFF#000000##FFFFFF
##5E2BA31.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)
#004AA6
Deuteranopia (green-blind)
#0048A1
Tritanopia (blue-blind)
#4C4A64
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5e2ba3;
/* rgb */ color: rgb(94, 43, 163);
/* oklch */ color: oklch(42.9% 0.181 297.6);
Tailwind
colors: {
  custom: {
    50: '#9269bf',
    500: '#5e2ba3',
    950: '#000000',
  },
}
SCSS
$custom: #5e2ba3;
$custom-light: #9269bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2ba3",
  "rgb": {
    "r": 94,
    "g": 43,
    "b": 163
  },
  "hsl": {
    "h": 265.5,
    "s": 58.252,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42858,
    "c": 0.18052,
    "h": 297.6
  },
  "luminance": 0.06752
}

Semantic roles & 50–950 ramp

primary
#5E2BA3
secondary
#9BC06A
accent
#E146A0
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5E2BA3

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

Preview Lab → · Contrast checker → · Palette generator →

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