#4E2FA0#4E2FA0

#4E2FA0 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.4% C 0.172 H 289.3°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#4E2FA0
RGBrgb(78, 47, 160)
HSLhsl(256, 55%, 41%)
HSVhsv(256, 71%, 63%)
CMYKcmyk(51.2%, 70.6%, 0%, 37.3%)
CIE-LABlab(29.89, 42.13, -56.43)
CIE-LCHlch(29.89, 70.42, 306.75°)
OKLaboklab(41.4% 0.0566 -0.162)
OKLCHoklch(41.4% 0.172 289.3)
XYZxyz(10.5017, 6.1903, 33.8924)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2FA0 #81A02F
analogous
#2F49A0 #4E2FA0 #862FA0
triadic
#4E2FA0 #A04E2F #2FA04E
tetradic
#4E2FA0 #A02F49 #81A02F #2FA086
square
#4E2FA0 #A02F49 #81A02F #2FA086
split-complementary
#4E2FA0 #A0862F #49A02F
monochromatic
#201341 #372171 #4E2FA0 #6844C8 #8E73D6

Accessibility & contrast

On white

9.38
#4E2FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4E2FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2FA0
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2FA0#FFFFFF#000000##FFFFFF
##4E2FA01.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A3
Deuteranopia (green-blind)
#00449E
Tritanopia (blue-blind)
#314C64
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e2fa0;
/* rgb */ color: rgb(78, 47, 160);
/* oklch */ color: oklch(41.4% 0.172 289.3);
Tailwind
colors: {
  custom: {
    50: '#886abd',
    500: '#4e2fa0',
    950: '#000000',
  },
}
SCSS
$custom: #4e2fa0;
$custom-light: #886abd;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2fa0",
  "rgb": {
    "r": 78,
    "g": 47,
    "b": 160
  },
  "hsl": {
    "h": 256.46,
    "s": 54.589,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41404,
    "c": 0.17157,
    "h": 289.3
  },
  "luminance": 0.06191
}

Semantic roles & 50–950 ramp

primary
#4E2FA0
secondary
#A8BE6D
accent
#DE4AB5
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E2FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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