#5E2BAB#5E2BAB

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

Color values

HEX#5E2BAB
RGBrgb(94, 43, 171)
HSLhsl(264, 60%, 42%)
HSVhsv(264, 75%, 67%)
CMYKcmyk(45%, 74.9%, 0%, 32.9%)
CIE-LABlab(31.91, 49.95, -59.67)
CIE-LCHlch(31.91, 77.82, 309.93°)
OKLaboklab(43.55% 0.0817 -0.1709)
OKLCHoklch(43.55% 0.189 295.5)
XYZxyz(12.8287, 7.0474, 39.2046)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2BAB #78AB2B
analogous
#2B38AB #5E2BAB #9E2BAB
triadic
#5E2BAB #AB5E2B #2BAB5E
tetradic
#5E2BAB #AB2B38 #78AB2B #2BAB9E
square
#5E2BAB #AB2B38 #78AB2B #2BAB9E
split-complementary
#5E2BAB #AB9E2B #38AB2B
monochromatic
#281249 #431F7A #5E2BAB #7B43D0 #9E74DC

Accessibility & contrast

On white

8.72
#5E2BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#5E2BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2BAB
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2BAB#FFFFFF#000000##FFFFFF
##5E2BAB1.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAF
Deuteranopia (green-blind)
#0049A9
Tritanopia (blue-blind)
#494D69
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5e2bab;
/* rgb */ color: rgb(94, 43, 171);
/* oklch */ color: oklch(43.5% 0.189 295.5);
Tailwind
colors: {
  custom: {
    50: '#936ac5',
    500: '#5e2bab',
    950: '#000000',
  },
}
SCSS
$custom: #5e2bab;
$custom-light: #936ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2bab",
  "rgb": {
    "r": 94,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 263.906,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43549,
    "c": 0.18943,
    "h": 295.5
  },
  "luminance": 0.07048
}

Semantic roles & 50–950 ramp

primary
#5E2BAB
secondary
#A2C46E
accent
#E345A4
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5E2BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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