#4E2AA2#4E2AA2

#4E2AA2 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.9% C 0.180 H 289.7°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#4E2AA2
RGBrgb(78, 42, 162)
HSLhsl(258, 59%, 40%)
HSVhsv(258, 74%, 64%)
CMYKcmyk(51.9%, 74.1%, 0%, 36.5%)
CIE-LABlab(29.12, 45.36, -58.90)
CIE-LCHlch(29.12, 74.34, 307.60°)
OKLaboklab(40.91% 0.0607 -0.1692)
OKLCHoklch(40.91% 0.18 289.7)
XYZxyz(10.4896, 5.8838, 34.7584)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2AA2 #7EA22A
analogous
#2A42A2 #4E2AA2 #8A2AA2
triadic
#4E2AA2 #A24E2A #2AA24E
tetradic
#4E2AA2 #A22A42 #7EA22A #2AA28A
square
#4E2AA2 #A22A42 #7EA22A #2AA28A
split-complementary
#4E2AA2 #A28A2A #42A22A
monochromatic
#1F1141 #371D71 #4E2AA2 #683DCD #8E6DD9

Accessibility & contrast

On white

9.65
#4E2AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#4E2AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2AA2
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2AA2#FFFFFF#000000##FFFFFF
##4E2AA21.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A5
Deuteranopia (green-blind)
#0042A0
Tritanopia (blue-blind)
#304A64
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4e2aa2;
/* rgb */ color: rgb(78, 42, 162);
/* oklch */ color: oklch(40.9% 0.180 289.7);
Tailwind
colors: {
  custom: {
    50: '#8867bf',
    500: '#4e2aa2',
    950: '#000000',
  },
}
SCSS
$custom: #4e2aa2;
$custom-light: #8867bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2aa2",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 258,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.40912,
    "c": 0.17975,
    "h": 289.7
  },
  "luminance": 0.05884
}

Semantic roles & 50–950 ramp

primary
#4E2AA2
secondary
#A6C068
accent
#E246B3
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E2AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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