#5E2EA7#5E2EA7

#5E2EA7 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.6% C 0.182 H 296.1°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#5E2EA7
RGBrgb(94, 46, 167)
HSLhsl(264, 57%, 42%)
HSVhsv(264, 72%, 65%)
CMYKcmyk(43.7%, 72.5%, 0%, 34.5%)
CIE-LABlab(32.09, 47.45, -56.99)
CIE-LCHlch(32.09, 74.16, 309.78°)
OKLaboklab(43.57% 0.0798 -0.163)
OKLCHoklch(43.57% 0.182 296.1)
XYZxyz(12.5663, 7.1234, 37.2646)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2EA7 #77A72E
analogous
#2E3AA7 #5E2EA7 #9B2EA7
triadic
#5E2EA7 #A75E2E #2EA75E
tetradic
#5E2EA7 #A72E3A #77A72E #2EA79B
square
#5E2EA7 #A72E3A #77A72E #2EA79B
split-complementary
#5E2EA7 #A79B2E #3AA72E
monochromatic
#281447 #432177 #5E2EA7 #7B46CC #9D76D9

Accessibility & contrast

On white

8.66
#5E2EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#5E2EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2EA7
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2EA7#FFFFFF#000000##FFFFFF
##5E2EA71.008.662.428.66
#FFFFFF8.661.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAB
Deuteranopia (green-blind)
#004AA5
Tritanopia (blue-blind)
#4A4D67
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5e2ea7;
/* rgb */ color: rgb(94, 46, 167);
/* oklch */ color: oklch(43.6% 0.182 296.1);
Tailwind
colors: {
  custom: {
    50: '#926bc2',
    500: '#5e2ea7',
    950: '#000000',
  },
}
SCSS
$custom: #5e2ea7;
$custom-light: #926bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2ea7",
  "rgb": {
    "r": 94,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 263.802,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43565,
    "c": 0.18153,
    "h": 296.1
  },
  "luminance": 0.07124
}

Semantic roles & 50–950 ramp

primary
#5E2EA7
secondary
#A1C170
accent
#E048A4
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5E2EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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