#5E2EA8#5E2EA8

#5E2EA8 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.6% C 0.183 H 295.8°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#5E2EA8
RGBrgb(94, 46, 168)
HSLhsl(264, 57%, 42%)
HSVhsv(264, 73%, 66%)
CMYKcmyk(44%, 72.6%, 0%, 34.1%)
CIE-LABlab(32.17, 47.72, -57.46)
CIE-LCHlch(32.17, 74.69, 309.71°)
OKLaboklab(43.65% 0.0796 -0.1644)
OKLCHoklch(43.65% 0.183 295.8)
XYZxyz(12.6591, 7.1605, 37.7533)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2EA8 #78A82E
analogous
#2E3BA8 #5E2EA8 #9B2EA8
triadic
#5E2EA8 #A85E2E #2EA85E
tetradic
#5E2EA8 #A82E3B #78A82E #2EA89B
square
#5E2EA8 #A82E3B #78A82E #2EA89B
split-complementary
#5E2EA8 #A89B2E #3BA82E
monochromatic
#281448 #432178 #5E2EA8 #7B47CD #9E77DA

Accessibility & contrast

On white

8.63
#5E2EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#5E2EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2EA8
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2EA8#FFFFFF#000000##FFFFFF
##5E2EA81.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAC
Deuteranopia (green-blind)
#004AA6
Tritanopia (blue-blind)
#4A4D68
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5e2ea8;
/* rgb */ color: rgb(94, 46, 168);
/* oklch */ color: oklch(43.6% 0.183 295.8);
Tailwind
colors: {
  custom: {
    50: '#926bc3',
    500: '#5e2ea8',
    950: '#000000',
  },
}
SCSS
$custom: #5e2ea8;
$custom-light: #926bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2ea8",
  "rgb": {
    "r": 94,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 263.607,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.4365,
    "c": 0.18267,
    "h": 295.8
  },
  "luminance": 0.07161
}

Semantic roles & 50–950 ramp

primary
#5E2EA8
secondary
#A2C270
accent
#E048A4
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5E2EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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