#5E2EB7#5E2EB7

#5E2EB7 is a dark, vivid violet. Relative luminance 0.078; OKLCH L 45.0% C 0.200 H 292.4°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#5E2EB7
RGBrgb(94, 46, 183)
HSLhsl(261, 60%, 45%)
HSVhsv(261, 75%, 72%)
CMYKcmyk(48.6%, 74.9%, 0%, 28.2%)
CIE-LABlab(33.46, 51.73, -64.29)
CIE-LCHlch(33.46, 82.52, 308.82°)
OKLaboklab(44.96% 0.0761 -0.1845)
OKLCHoklch(44.96% 0.2 292.4)
XYZxyz(14.1379, 7.7521, 45.5419)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2EB7 #87B72E
analogous
#2E43B7 #5E2EB7 #A32EB7
triadic
#5E2EB7 #B75E2E #2EB75E
tetradic
#5E2EB7 #B72E43 #87B72E #2EB7A3
square
#5E2EB7 #B72E43 #87B72E #2EB7A3
split-complementary
#5E2EB7 #B7A32E #43B72E
monochromatic
#2C1555 #452286 #5E2EB7 #7D4FD3 #A280DF

Accessibility & contrast

On white

8.23
#5E2EB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#5E2EB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2EB7
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2EB7#FFFFFF#000000##FFFFFF
##5E2EB71.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BB
Deuteranopia (green-blind)
#004CB4
Tritanopia (blue-blind)
#425370
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5e2eb7;
/* rgb */ color: rgb(94, 46, 183);
/* oklch */ color: oklch(45.0% 0.200 292.4);
Tailwind
colors: {
  custom: {
    50: '#946cce',
    500: '#5e2eb7',
    950: '#000000',
  },
}
SCSS
$custom: #5e2eb7;
$custom-light: #946cce;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2eb7",
  "rgb": {
    "r": 94,
    "g": 46,
    "b": 183
  },
  "hsl": {
    "h": 261.022,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.4496,
    "c": 0.19957,
    "h": 292.4
  },
  "luminance": 0.07753
}

Semantic roles & 50–950 ramp

primary
#5E2EB7
secondary
#ACC879
accent
#E345AC
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5E2EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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