#5E2BA6#5E2BA6

#5E2BA6 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.1% C 0.184 H 296.8°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#5E2BA6
RGBrgb(94, 43, 166)
HSLhsl(265, 59%, 41%)
HSVhsv(265, 74%, 65%)
CMYKcmyk(43.4%, 74.1%, 0%, 34.9%)
CIE-LABlab(31.49, 48.64, -57.37)
CIE-LCHlch(31.49, 75.21, 310.29°)
OKLaboklab(43.11% 0.0829 -0.1641)
OKLCHoklch(43.11% 0.184 296.8)
XYZxyz(12.3611, 6.8604, 36.7419)
Luminance0.0686 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2BA6 #73A62B
analogous
#2B35A6 #5E2BA6 #9B2BA6
triadic
#5E2BA6 #A65E2B #2BA65E
tetradic
#5E2BA6 #A62B35 #73A62B #2BA69B
square
#5E2BA6 #A62B35 #73A62B #2BA69B
split-complementary
#5E2BA6 #A69B2B #35A62B
monochromatic
#271245 #421E75 #5E2BA6 #7B41CE #9D71DA

Accessibility & contrast

On white

8.85
#5E2BA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5E2BA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2BA6
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2BA6#FFFFFF#000000##FFFFFF
##5E2BA61.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAA
Deuteranopia (green-blind)
#0048A4
Tritanopia (blue-blind)
#4B4B66
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5e2ba6;
/* rgb */ color: rgb(94, 43, 166);
/* oklch */ color: oklch(43.1% 0.184 296.8);
Tailwind
colors: {
  custom: {
    50: '#9269c1',
    500: '#5e2ba6',
    950: '#000000',
  },
}
SCSS
$custom: #5e2ba6;
$custom-light: #9269c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2ba6",
  "rgb": {
    "r": 94,
    "g": 43,
    "b": 166
  },
  "hsl": {
    "h": 264.878,
    "s": 58.852,
    "l": 40.98
  },
  "oklch": {
    "l": 0.43115,
    "c": 0.18387,
    "h": 296.8
  },
  "luminance": 0.06861
}

Semantic roles & 50–950 ramp

primary
#5E2BA6
secondary
#9EC16B
accent
#E246A1
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5E2BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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