#5E2AB8#5E2AB8

#5E2AB8 is a dark, highly saturated violet. Relative luminance 0.075; OKLCH L 44.6% C 0.205 H 292.7°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#5E2AB8
RGBrgb(94, 42, 184)
HSLhsl(262, 63%, 44%)
HSVhsv(262, 77%, 72%)
CMYKcmyk(48.9%, 77.2%, 0%, 27.8%)
CIE-LABlab(32.91, 53.83, -65.79)
CIE-LCHlch(32.91, 85.00, 309.29°)
OKLaboklab(44.6% 0.0791 -0.1888)
OKLCHoklch(44.6% 0.205 292.7)
XYZxyz(14.0934, 7.4958, 46.0424)
Luminance0.0750 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2AB8 #84B82A
analogous
#2A3DB8 #5E2AB8 #A52AB8
triadic
#5E2AB8 #B85E2A #2AB85E
tetradic
#5E2AB8 #B82A3D #84B82A #2AB8A5
square
#5E2AB8 #B82A3D #84B82A #2AB8A5
split-complementary
#5E2AB8 #B8A52A #3DB82A
monochromatic
#2B1354 #451F86 #5E2AB8 #7D4AD6 #A17BE1

Accessibility & contrast

On white

8.40
#5E2AB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#5E2AB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2AB8
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2AB8#FFFFFF#000000##FFFFFF
##5E2AB81.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBC
Deuteranopia (green-blind)
#004BB5
Tritanopia (blue-blind)
#415270
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5e2ab8;
/* rgb */ color: rgb(94, 42, 184);
/* oklch */ color: oklch(44.6% 0.205 292.7);
Tailwind
colors: {
  custom: {
    50: '#956ace',
    500: '#5e2ab8',
    950: '#000000',
  },
}
SCSS
$custom: #5e2ab8;
$custom-light: #956ace;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2ab8",
  "rgb": {
    "r": 94,
    "g": 42,
    "b": 184
  },
  "hsl": {
    "h": 261.972,
    "s": 62.832,
    "l": 44.314
  },
  "oklch": {
    "l": 0.44601,
    "c": 0.20472,
    "h": 292.7
  },
  "luminance": 0.07496
}

Semantic roles & 50–950 ramp

primary
#5E2AB8
secondary
#AAC975
accent
#E642AA
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5E2AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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