#5E2FA6#5E2FA6

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

Color values

HEX#5E2FA6
RGBrgb(94, 47, 166)
HSLhsl(264, 56%, 42%)
HSVhsv(264, 72%, 65%)
CMYKcmyk(43.4%, 71.7%, 0%, 34.9%)
CIE-LABlab(32.18, 46.69, -56.23)
CIE-LCHlch(32.18, 73.09, 309.70°)
OKLaboklab(43.61% 0.079 -0.1608)
OKLCHoklch(43.61% 0.179 296.2)
XYZxyz(12.5137, 7.1656, 36.7928)
Luminance0.0717 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2FA6 #77A62F
analogous
#2F3CA6 #5E2FA6 #9A2FA6
triadic
#5E2FA6 #A65E2F #2FA65E
tetradic
#5E2FA6 #A62F3C #77A62F #2FA69A
square
#5E2FA6 #A62F3C #77A62F #2FA69A
split-complementary
#5E2FA6 #A69A2F #3CA62F
monochromatic
#281447 #432176 #5E2FA6 #7B47CB #9D77D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5E2FA6#FFFFFF#000000##FFFFFF
##5E2FA61.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)
#004CA9
Deuteranopia (green-blind)
#004AA4
Tritanopia (blue-blind)
#4B4D67
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5e2fa6;
/* rgb */ color: rgb(94, 47, 166);
/* oklch */ color: oklch(43.6% 0.179 296.2);
Tailwind
colors: {
  custom: {
    50: '#926cc1',
    500: '#5e2fa6',
    950: '#000000',
  },
}
SCSS
$custom: #5e2fa6;
$custom-light: #926cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2fa6",
  "rgb": {
    "r": 94,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 263.697,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43606,
    "c": 0.17921,
    "h": 296.2
  },
  "luminance": 0.07166
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5E2FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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