#5E2FA5#5E2FA5

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

Color values

HEX#5E2FA5
RGBrgb(94, 47, 165)
HSLhsl(264, 56%, 42%)
HSVhsv(264, 72%, 65%)
CMYKcmyk(43%, 71.5%, 0%, 35.3%)
CIE-LABlab(32.10, 46.42, -55.76)
CIE-LCHlch(32.10, 72.56, 309.77°)
OKLaboklab(43.52% 0.0792 -0.1595)
OKLCHoklch(43.52% 0.178 296.4)
XYZxyz(12.4224, 7.1291, 36.3116)
Luminance0.0713 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2FA5 #76A52F
analogous
#2F3BA5 #5E2FA5 #992FA5
triadic
#5E2FA5 #A55E2F #2FA55E
tetradic
#5E2FA5 #A52F3B #76A52F #2FA599
square
#5E2FA5 #A52F3B #76A52F #2FA599
split-complementary
#5E2FA5 #A5992F #3BA52F
monochromatic
#281446 #432175 #5E2FA5 #7B47CB #9D76D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5E2FA5#FFFFFF#000000##FFFFFF
##5E2FA51.008.662.438.66
#FFFFFF8.661.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA8
Deuteranopia (green-blind)
#004AA3
Tritanopia (blue-blind)
#4B4C67
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5e2fa5;
/* rgb */ color: rgb(94, 47, 165);
/* oklch */ color: oklch(43.5% 0.178 296.4);
Tailwind
colors: {
  custom: {
    50: '#926cc1',
    500: '#5e2fa5',
    950: '#000000',
  },
}
SCSS
$custom: #5e2fa5;
$custom-light: #926cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2fa5",
  "rgb": {
    "r": 94,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 263.898,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.43523,
    "c": 0.17806,
    "h": 296.4
  },
  "luminance": 0.07129
}

Semantic roles & 50–950 ramp

primary
#5E2FA5
secondary
#A0C070
accent
#DF49A3
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5E2FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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