#5E2FA0#5E2FA0

#5E2FA0 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.1% C 0.172 H 297.7°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#5E2FA0
RGBrgb(94, 47, 160)
HSLhsl(265, 55%, 41%)
HSVhsv(265, 71%, 63%)
CMYKcmyk(41.3%, 70.6%, 0%, 37.3%)
CIE-LABlab(31.69, 45.09, -53.40)
CIE-LCHlch(31.69, 69.89, 310.17°)
OKLaboklab(43.11% 0.0802 -0.1525)
OKLCHoklch(43.11% 0.172 297.7)
XYZxyz(11.9761, 6.9506, 33.9615)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2FA0 #71A02F
analogous
#2F38A0 #5E2FA0 #962FA0
triadic
#5E2FA0 #A05E2F #2FA05E
tetradic
#5E2FA0 #A02F38 #71A02F #2FA096
square
#5E2FA0 #A02F38 #71A02F #2FA096
split-complementary
#5E2FA0 #A0962F #38A02F
monochromatic
#261341 #422171 #5E2FA0 #7B44C8 #9C73D6

Accessibility & contrast

On white

8.79
#5E2FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5E2FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2FA0
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2FA0#FFFFFF#000000##FFFFFF
##5E2FA01.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA3
Deuteranopia (green-blind)
#00499E
Tritanopia (blue-blind)
#4E4B64
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5e2fa0;
/* rgb */ color: rgb(94, 47, 160);
/* oklch */ color: oklch(43.1% 0.172 297.7);
Tailwind
colors: {
  custom: {
    50: '#916bbd',
    500: '#5e2fa0',
    950: '#000000',
  },
}
SCSS
$custom: #5e2fa0;
$custom-light: #916bbd;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2fa0",
  "rgb": {
    "r": 94,
    "g": 47,
    "b": 160
  },
  "hsl": {
    "h": 264.956,
    "s": 54.589,
    "l": 40.588
  },
  "oklch": {
    "l": 0.43108,
    "c": 0.1723,
    "h": 297.7
  },
  "luminance": 0.06951
}

Semantic roles & 50–950 ramp

primary
#5E2FA0
secondary
#9CBE6D
accent
#DE4AA0
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5E2FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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