#5E2FA2#5E2FA2

#5E2FA2 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.3% C 0.175 H 297.2°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#5E2FA2
RGBrgb(94, 47, 162)
HSLhsl(265, 55%, 41%)
HSVhsv(265, 71%, 64%)
CMYKcmyk(42%, 71%, 0%, 36.5%)
CIE-LABlab(31.85, 45.62, -54.35)
CIE-LCHlch(31.85, 70.96, 310.01°)
OKLaboklab(43.27% 0.0798 -0.1553)
OKLCHoklch(43.27% 0.175 297.2)
XYZxyz(12.1525, 7.0211, 34.8904)
Luminance0.0702 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2FA2 #73A22F
analogous
#2F39A2 #5E2FA2 #972FA2
triadic
#5E2FA2 #A25E2F #2FA25E
tetradic
#5E2FA2 #A22F39 #73A22F #2FA297
square
#5E2FA2 #A22F39 #73A22F #2FA297
split-complementary
#5E2FA2 #A2972F #39A22F
monochromatic
#271343 #422173 #5E2FA2 #7B45C9 #9D75D7

Accessibility & contrast

On white

8.73
#5E2FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E2FA2
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2FA2#FFFFFF#000000##FFFFFF
##5E2FA21.008.732.408.73
#FFFFFF8.731.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#004AA0
Tritanopia (blue-blind)
#4D4B65
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5e2fa2;
/* rgb */ color: rgb(94, 47, 162);
/* oklch */ color: oklch(43.3% 0.175 297.2);
Tailwind
colors: {
  custom: {
    50: '#926bbe',
    500: '#5e2fa2',
    950: '#000000',
  },
}
SCSS
$custom: #5e2fa2;
$custom-light: #926bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2fa2",
  "rgb": {
    "r": 94,
    "g": 47,
    "b": 162
  },
  "hsl": {
    "h": 264.522,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.43273,
    "c": 0.17461,
    "h": 297.2
  },
  "luminance": 0.07021
}

Semantic roles & 50–950 ramp

primary
#5E2FA2
secondary
#9EBF6E
accent
#DE49A1
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5E2FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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