#4E2FA6#4E2FA6

#4E2FA6 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.9% C 0.179 H 288.1°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#4E2FA6
RGBrgb(78, 47, 166)
HSLhsl(256, 56%, 42%)
HSVhsv(256, 72%, 65%)
CMYKcmyk(53%, 71.7%, 0%, 34.9%)
CIE-LABlab(30.41, 43.90, -59.19)
CIE-LCHlch(30.41, 73.69, 306.56°)
OKLaboklab(41.94% 0.0554 -0.1701)
OKLCHoklch(41.94% 0.179 288.1)
XYZxyz(11.0393, 6.4054, 36.7237)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2FA6 #87A62F
analogous
#2F4CA6 #4E2FA6 #8A2FA6
triadic
#4E2FA6 #A64E2F #2FA64E
tetradic
#4E2FA6 #A62F4C #87A62F #2FA68A
square
#4E2FA6 #A62F4C #87A62F #2FA68A
split-complementary
#4E2FA6 #A68A2F #4CA62F
monochromatic
#211447 #382176 #4E2FA6 #6A47CB #9077D8

Accessibility & contrast

On white

9.21
#4E2FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#4E2FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2FA6
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2FA6#FFFFFF#000000##FFFFFF
##4E2FA61.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAA
Deuteranopia (green-blind)
#0044A4
Tritanopia (blue-blind)
#2C4E67
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4e2fa6;
/* rgb */ color: rgb(78, 47, 166);
/* oklch */ color: oklch(41.9% 0.179 288.1);
Tailwind
colors: {
  custom: {
    50: '#896ac1',
    500: '#4e2fa6',
    950: '#000000',
  },
}
SCSS
$custom: #4e2fa6;
$custom-light: #896ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2fa6",
  "rgb": {
    "r": 78,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 255.63,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.4194,
    "c": 0.17889,
    "h": 288.1
  },
  "luminance": 0.06406
}

Semantic roles & 50–950 ramp

primary
#4E2FA6
secondary
#ACC170
accent
#DF49B8
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E2FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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