#5E2FA8#5E2FA8

#5E2FA8 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.8% C 0.181 H 295.7°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#5E2FA8
RGBrgb(94, 47, 168)
HSLhsl(263, 56%, 42%)
HSVhsv(263, 72%, 66%)
CMYKcmyk(44%, 72%, 0%, 34.1%)
CIE-LABlab(32.35, 47.22, -57.17)
CIE-LCHlch(32.35, 74.15, 309.56°)
OKLaboklab(43.78% 0.0786 -0.1636)
OKLCHoklch(43.78% 0.182 295.7)
XYZxyz(12.6986, 7.2396, 37.7665)
Luminance0.0724 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2FA8 #79A82F
analogous
#2F3CA8 #5E2FA8 #9B2FA8
triadic
#5E2FA8 #A85E2F #2FA85E
tetradic
#5E2FA8 #A82F3C #79A82F #2FA89B
square
#5E2FA8 #A82F3C #79A82F #2FA89B
split-complementary
#5E2FA8 #A89B2F #3CA82F
monochromatic
#281448 #432278 #5E2FA8 #7B48CC #9E78D9

Accessibility & contrast

On white

8.58
#5E2FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#5E2FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2FA8
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2FA8#FFFFFF#000000##FFFFFF
##5E2FA81.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAC
Deuteranopia (green-blind)
#004AA6
Tritanopia (blue-blind)
#4A4E68
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5e2fa8;
/* rgb */ color: rgb(94, 47, 168);
/* oklch */ color: oklch(43.8% 0.181 295.7);
Tailwind
colors: {
  custom: {
    50: '#926cc3',
    500: '#5e2fa8',
    950: '#000000',
  },
}
SCSS
$custom: #5e2fa8;
$custom-light: #926cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2fa8",
  "rgb": {
    "r": 94,
    "g": 47,
    "b": 168
  },
  "hsl": {
    "h": 263.306,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.43775,
    "c": 0.1815,
    "h": 295.7
  },
  "luminance": 0.0724
}

Semantic roles & 50–950 ramp

primary
#5E2FA8
secondary
#A2C171
accent
#E048A5
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5E2FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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