#5E2BA2#5E2BA2

#5E2BA2 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.8% C 0.179 H 297.8°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#5E2BA2
RGBrgb(94, 43, 162)
HSLhsl(266, 58%, 40%)
HSVhsv(266, 73%, 64%)
CMYKcmyk(42%, 73.5%, 0%, 36.5%)
CIE-LABlab(31.15, 47.59, -55.50)
CIE-LCHlch(31.15, 73.11, 310.62°)
OKLaboklab(42.77% 0.0838 -0.1587)
OKLCHoklch(42.77% 0.179 297.8)
XYZxyz(11.9999, 6.7159, 34.8395)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2BA2 #6FA22B
analogous
#2B34A2 #5E2BA2 #992BA2
triadic
#5E2BA2 #A25E2B #2BA25E
tetradic
#5E2BA2 #A22B34 #6FA22B #2BA299
square
#5E2BA2 #A22B34 #6FA22B #2BA299
split-complementary
#5E2BA2 #A2992B #34A22B
monochromatic
#261141 #421E72 #5E2BA2 #7B3ECC #9C6FD9

Accessibility & contrast

On white

8.96
#5E2BA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E2BA2
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2BA2#FFFFFF#000000##FFFFFF
##5E2BA21.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA5
Deuteranopia (green-blind)
#0048A0
Tritanopia (blue-blind)
#4D4964
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5e2ba2;
/* rgb */ color: rgb(94, 43, 162);
/* oklch */ color: oklch(42.8% 0.179 297.8);
Tailwind
colors: {
  custom: {
    50: '#9269be',
    500: '#5e2ba2',
    950: '#000000',
  },
}
SCSS
$custom: #5e2ba2;
$custom-light: #9269be;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2ba2",
  "rgb": {
    "r": 94,
    "g": 43,
    "b": 162
  },
  "hsl": {
    "h": 265.714,
    "s": 58.049,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42773,
    "c": 0.17941,
    "h": 297.8
  },
  "luminance": 0.06716
}

Semantic roles & 50–950 ramp

primary
#5E2BA2
secondary
#9BC069
accent
#E1479F
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5E2BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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