#5E2BB2#5E2BB2

#5E2BB2 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 44.2% C 0.197 H 293.9°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#5E2BB2
RGBrgb(94, 43, 178)
HSLhsl(263, 61%, 43%)
HSVhsv(263, 76%, 70%)
CMYKcmyk(47.2%, 75.8%, 0%, 30.2%)
CIE-LABlab(32.53, 51.79, -62.85)
CIE-LCHlch(32.53, 81.44, 309.49°)
OKLaboklab(44.17% 0.0799 -0.1802)
OKLCHoklch(44.17% 0.197 293.9)
XYZxyz(13.5136, 7.3214, 42.8120)
Luminance0.0732 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2BB2 #7FB22B
analogous
#2B3BB2 #5E2BB2 #A12BB2
triadic
#5E2BB2 #B25E2B #2BB25E
tetradic
#5E2BB2 #B22B3B #7FB22B #2BB2A1
square
#5E2BB2 #B22B3B #7FB22B #2BB2A1
split-complementary
#5E2BB2 #B2A12B #3BB22B
monochromatic
#2A134F #441F81 #5E2BB2 #7C48D3 #9F79DF

Accessibility & contrast

On white

8.52
#5E2BB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#5E2BB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2BB2
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2BB2#FFFFFF#000000##FFFFFF
##5E2BB21.008.522.468.52
#FFFFFF8.521.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB6
Deuteranopia (green-blind)
#004AAF
Tritanopia (blue-blind)
#45506D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5e2bb2;
/* rgb */ color: rgb(94, 43, 178);
/* oklch */ color: oklch(44.2% 0.197 293.9);
Tailwind
colors: {
  custom: {
    50: '#946aca',
    500: '#5e2bb2',
    950: '#000000',
  },
}
SCSS
$custom: #5e2bb2;
$custom-light: #946aca;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2bb2",
  "rgb": {
    "r": 94,
    "g": 43,
    "b": 178
  },
  "hsl": {
    "h": 262.667,
    "s": 61.086,
    "l": 43.333
  },
  "oklch": {
    "l": 0.44168,
    "c": 0.19716,
    "h": 293.9
  },
  "luminance": 0.07322
}

Semantic roles & 50–950 ramp

primary
#5E2BB2
secondary
#A7C772
accent
#E444A8
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5E2BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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