#5E2FA3#5E2FA3

#5E2FA3 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.4% C 0.176 H 296.9°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#5E2FA3
RGBrgb(94, 47, 163)
HSLhsl(264, 55%, 41%)
HSVhsv(264, 71%, 64%)
CMYKcmyk(42.3%, 71.2%, 0%, 36.1%)
CIE-LABlab(31.94, 45.89, -54.82)
CIE-LCHlch(31.94, 71.49, 309.93°)
OKLaboklab(43.36% 0.0796 -0.1567)
OKLCHoklch(43.36% 0.176 296.9)
XYZxyz(12.2417, 7.0568, 35.3604)
Luminance0.0706 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2FA3 #74A32F
analogous
#2F3AA3 #5E2FA3 #982FA3
triadic
#5E2FA3 #A35E2F #2FA35E
tetradic
#5E2FA3 #A32F3A #74A32F #2FA398
square
#5E2FA3 #A32F3A #74A32F #2FA398
split-complementary
#5E2FA3 #A3982F #3AA32F
monochromatic
#271444 #432173 #5E2FA3 #7B46CA #9D75D7

Accessibility & contrast

On white

8.71
#5E2FA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#5E2FA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2FA3
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2FA3#FFFFFF#000000##FFFFFF
##5E2FA31.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA6
Deuteranopia (green-blind)
#004AA1
Tritanopia (blue-blind)
#4C4C65
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5e2fa3;
/* rgb */ color: rgb(94, 47, 163);
/* oklch */ color: oklch(43.4% 0.176 296.9);
Tailwind
colors: {
  custom: {
    50: '#926bbf',
    500: '#5e2fa3',
    950: '#000000',
  },
}
SCSS
$custom: #5e2fa3;
$custom-light: #926bbf;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2fa3",
  "rgb": {
    "r": 94,
    "g": 47,
    "b": 163
  },
  "hsl": {
    "h": 264.31,
    "s": 55.238,
    "l": 41.176
  },
  "oklch": {
    "l": 0.43356,
    "c": 0.17576,
    "h": 296.9
  },
  "luminance": 0.07057
}

Semantic roles & 50–950 ramp

primary
#5E2FA3
secondary
#9FBF6F
accent
#DF49A2
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5E2FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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