#4E2FA4#4E2FA4

#4E2FA4 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.8% C 0.176 H 288.5°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#4E2FA4
RGBrgb(78, 47, 164)
HSLhsl(256, 55%, 41%)
HSVhsv(256, 71%, 64%)
CMYKcmyk(52.4%, 71.3%, 0%, 35.7%)
CIE-LABlab(30.24, 43.31, -58.28)
CIE-LCHlch(30.24, 72.61, 306.62°)
OKLaboklab(41.76% 0.0559 -0.1674)
OKLCHoklch(41.76% 0.176 288.5)
XYZxyz(10.8573, 6.3326, 35.7650)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2FA4 #85A42F
analogous
#2F4BA4 #4E2FA4 #892FA4
triadic
#4E2FA4 #A44E2F #2FA44E
tetradic
#4E2FA4 #A42F4B #85A42F #2FA489
square
#4E2FA4 #A42F4B #85A42F #2FA489
split-complementary
#4E2FA4 #A4892F #4BA42F
monochromatic
#211445 #372174 #4E2FA4 #6946CA #9076D8

Accessibility & contrast

On white

9.26
#4E2FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#4E2FA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2FA4
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2FA4#FFFFFF#000000##FFFFFF
##4E2FA41.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA7
Deuteranopia (green-blind)
#0044A2
Tritanopia (blue-blind)
#2E4E66
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e2fa4;
/* rgb */ color: rgb(78, 47, 164);
/* oklch */ color: oklch(41.8% 0.176 288.5);
Tailwind
colors: {
  custom: {
    50: '#886ac0',
    500: '#4e2fa4',
    950: '#000000',
  },
}
SCSS
$custom: #4e2fa4;
$custom-light: #886ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2fa4",
  "rgb": {
    "r": 78,
    "g": 47,
    "b": 164
  },
  "hsl": {
    "h": 255.897,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.4176,
    "c": 0.17646,
    "h": 288.5
  },
  "luminance": 0.06333
}

Semantic roles & 50–950 ramp

primary
#4E2FA4
secondary
#AAC06F
accent
#DF49B7
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E2FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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