#5E2FA7#5E2FA7

#5E2FA7 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.7% C 0.180 H 295.9°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#5E2FA7
RGBrgb(94, 47, 167)
HSLhsl(264, 56%, 42%)
HSVhsv(264, 72%, 65%)
CMYKcmyk(43.7%, 71.9%, 0%, 34.5%)
CIE-LABlab(32.26, 46.95, -56.70)
CIE-LCHlch(32.26, 73.62, 309.63°)
OKLaboklab(43.69% 0.0789 -0.1622)
OKLCHoklch(43.69% 0.18 295.9)
XYZxyz(12.6058, 7.2024, 37.2778)
Luminance0.0720 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2FA7 #78A72F
analogous
#2F3CA7 #5E2FA7 #9A2FA7
triadic
#5E2FA7 #A75E2F #2FA75E
tetradic
#5E2FA7 #A72F3C #78A72F #2FA79A
square
#5E2FA7 #A72F3C #78A72F #2FA79A
split-complementary
#5E2FA7 #A79A2F #3CA72F
monochromatic
#281447 #432277 #5E2FA7 #7B48CB #9E78D9

Accessibility & contrast

On white

8.60
#5E2FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#5E2FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2FA7
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2FA7#FFFFFF#000000##FFFFFF
##5E2FA71.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAB
Deuteranopia (green-blind)
#004AA5
Tritanopia (blue-blind)
#4A4D68
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5e2fa7;
/* rgb */ color: rgb(94, 47, 167);
/* oklch */ color: oklch(43.7% 0.180 295.9);
Tailwind
colors: {
  custom: {
    50: '#926cc2',
    500: '#5e2fa7',
    950: '#000000',
  },
}
SCSS
$custom: #5e2fa7;
$custom-light: #926cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2fa7",
  "rgb": {
    "r": 94,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 263.5,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43691,
    "c": 0.18036,
    "h": 295.9
  },
  "luminance": 0.07203
}

Semantic roles & 50–950 ramp

primary
#5E2FA7
secondary
#A2C171
accent
#DF48A4
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5E2FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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