#5E2FA1#5E2FA1

#5E2FA1 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.2% C 0.173 H 297.5°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#5E2FA1
RGBrgb(94, 47, 161)
HSLhsl(265, 55%, 41%)
HSVhsv(265, 71%, 63%)
CMYKcmyk(41.6%, 70.8%, 0%, 36.9%)
CIE-LABlab(31.77, 45.35, -53.88)
CIE-LCHlch(31.77, 70.43, 310.09°)
OKLaboklab(43.19% 0.08 -0.1539)
OKLCHoklch(43.19% 0.173 297.5)
XYZxyz(12.0640, 6.9857, 34.4241)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2FA1 #72A12F
analogous
#2F39A1 #5E2FA1 #972FA1
triadic
#5E2FA1 #A15E2F #2FA15E
tetradic
#5E2FA1 #A12F39 #72A12F #2FA197
square
#5E2FA1 #A12F39 #72A12F #2FA197
split-complementary
#5E2FA1 #A1972F #39A12F
monochromatic
#271342 #422172 #5E2FA1 #7B45C9 #9D74D6

Accessibility & contrast

On white

8.76
#5E2FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5E2FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2FA1
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2FA1#FFFFFF#000000##FFFFFF
##5E2FA11.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA4
Deuteranopia (green-blind)
#00499F
Tritanopia (blue-blind)
#4D4B64
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5e2fa1;
/* rgb */ color: rgb(94, 47, 161);
/* oklch */ color: oklch(43.2% 0.173 297.5);
Tailwind
colors: {
  custom: {
    50: '#926bbe',
    500: '#5e2fa1',
    950: '#000000',
  },
}
SCSS
$custom: #5e2fa1;
$custom-light: #926bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2fa1",
  "rgb": {
    "r": 94,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 264.737,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.4319,
    "c": 0.17346,
    "h": 297.5
  },
  "luminance": 0.06986
}

Semantic roles & 50–950 ramp

primary
#5E2FA1
secondary
#9DBE6E
accent
#DE4AA1
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5E2FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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