#4E2FA5#4E2FA5

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

Color values

HEX#4E2FA5
RGBrgb(78, 47, 165)
HSLhsl(256, 56%, 42%)
HSVhsv(256, 72%, 65%)
CMYKcmyk(52.7%, 71.5%, 0%, 35.3%)
CIE-LABlab(30.32, 43.60, -58.74)
CIE-LCHlch(30.32, 73.15, 306.59°)
OKLaboklab(41.85% 0.0556 -0.1687)
OKLCHoklch(41.85% 0.178 288.2)
XYZxyz(10.9479, 6.3688, 36.2425)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2FA5 #86A52F
analogous
#2F4BA5 #4E2FA5 #892FA5
triadic
#4E2FA5 #A54E2F #2FA54E
tetradic
#4E2FA5 #A52F4B #86A52F #2FA589
square
#4E2FA5 #A52F4B #86A52F #2FA589
split-complementary
#4E2FA5 #A5892F #4BA52F
monochromatic
#211446 #372175 #4E2FA5 #6947CB #9076D8

Accessibility & contrast

On white

9.24
#4E2FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2FA5
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2FA5#FFFFFF#000000##FFFFFF
##4E2FA51.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA9
Deuteranopia (green-blind)
#0044A3
Tritanopia (blue-blind)
#2D4E67
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e2fa5;
/* rgb */ color: rgb(78, 47, 165);
/* oklch */ color: oklch(41.9% 0.178 288.2);
Tailwind
colors: {
  custom: {
    50: '#886ac1',
    500: '#4e2fa5',
    950: '#000000',
  },
}
SCSS
$custom: #4e2fa5;
$custom-light: #886ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2fa5",
  "rgb": {
    "r": 78,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 255.763,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.4185,
    "c": 0.17768,
    "h": 288.2
  },
  "luminance": 0.06369
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E2FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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