#4E2FA3#4E2FA3

#4E2FA3 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.7% C 0.175 H 288.7°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#4E2FA3
RGBrgb(78, 47, 163)
HSLhsl(256, 55%, 41%)
HSVhsv(256, 71%, 64%)
CMYKcmyk(52.1%, 71.2%, 0%, 36.1%)
CIE-LABlab(30.15, 43.01, -57.82)
CIE-LCHlch(30.15, 72.06, 306.65°)
OKLaboklab(41.67% 0.056 -0.166)
OKLCHoklch(41.67% 0.175 288.7)
XYZxyz(10.7673, 6.2966, 35.2912)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2FA3 #84A32F
analogous
#2F4AA3 #4E2FA3 #882FA3
triadic
#4E2FA3 #A34E2F #2FA34E
tetradic
#4E2FA3 #A32F4A #84A32F #2FA388
square
#4E2FA3 #A32F4A #84A32F #2FA388
split-complementary
#4E2FA3 #A3882F #4AA32F
monochromatic
#211444 #372173 #4E2FA3 #6946CA #8F75D7

Accessibility & contrast

On white

9.29
#4E2FA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#4E2FA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2FA3
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2FA3#FFFFFF#000000##FFFFFF
##4E2FA31.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A6
Deuteranopia (green-blind)
#0044A1
Tritanopia (blue-blind)
#2F4D65
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e2fa3;
/* rgb */ color: rgb(78, 47, 163);
/* oklch */ color: oklch(41.7% 0.175 288.7);
Tailwind
colors: {
  custom: {
    50: '#886abf',
    500: '#4e2fa3',
    950: '#000000',
  },
}
SCSS
$custom: #4e2fa3;
$custom-light: #886abf;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2fa3",
  "rgb": {
    "r": 78,
    "g": 47,
    "b": 163
  },
  "hsl": {
    "h": 256.034,
    "s": 55.238,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41671,
    "c": 0.17524,
    "h": 288.7
  },
  "luminance": 0.06297
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E2FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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