#4E2FA2#4E2FA2

#4E2FA2 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.6% C 0.174 H 288.9°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#4E2FA2
RGBrgb(78, 47, 162)
HSLhsl(256, 55%, 41%)
HSVhsv(256, 71%, 64%)
CMYKcmyk(51.9%, 71%, 0%, 36.5%)
CIE-LABlab(30.06, 42.72, -57.35)
CIE-LCHlch(30.06, 71.52, 306.68°)
OKLaboklab(41.58% 0.0562 -0.1647)
OKLCHoklch(41.58% 0.174 288.9)
XYZxyz(10.6781, 6.2609, 34.8212)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2FA2 #83A22F
analogous
#2F49A2 #4E2FA2 #872FA2
triadic
#4E2FA2 #A24E2F #2FA24E
tetradic
#4E2FA2 #A22F49 #83A22F #2FA287
square
#4E2FA2 #A22F49 #83A22F #2FA287
split-complementary
#4E2FA2 #A2872F #49A22F
monochromatic
#201343 #372173 #4E2FA2 #6945C9 #8F75D7

Accessibility & contrast

On white

9.32
#4E2FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4E2FA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2FA2
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2FA2#FFFFFF#000000##FFFFFF
##4E2FA21.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e2fa2;
/* rgb */ color: rgb(78, 47, 162);
/* oklch */ color: oklch(41.6% 0.174 288.9);
Tailwind
colors: {
  custom: {
    50: '#886abe',
    500: '#4e2fa2',
    950: '#000000',
  },
}
SCSS
$custom: #4e2fa2;
$custom-light: #886abe;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2fa2",
  "rgb": {
    "r": 78,
    "g": 47,
    "b": 162
  },
  "hsl": {
    "h": 256.174,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41581,
    "c": 0.17402,
    "h": 288.9
  },
  "luminance": 0.06261
}

Semantic roles & 50–950 ramp

primary
#4E2FA2
secondary
#A9BF6E
accent
#DE49B6
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E2FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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