#4E2AA8#4E2AA8

#4E2AA8 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.5% C 0.187 H 288.5°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#4E2AA8
RGBrgb(78, 42, 168)
HSLhsl(257, 60%, 41%)
HSVhsv(257, 75%, 66%)
CMYKcmyk(53.6%, 75%, 0%, 34.1%)
CIE-LABlab(29.67, 47.08, -61.62)
CIE-LCHlch(29.67, 77.54, 307.38°)
OKLaboklab(41.47% 0.0592 -0.1772)
OKLCHoklch(41.47% 0.187 288.5)
XYZxyz(11.0357, 6.1022, 37.6346)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2AA8 #84A82A
analogous
#2A45A8 #4E2AA8 #8D2AA8
triadic
#4E2AA8 #A84E2A #2AA84E
tetradic
#4E2AA8 #A82A45 #84A82A #2AA88D
square
#4E2AA8 #A82A45 #84A82A #2AA88D
split-complementary
#4E2AA8 #A88D2A #45A82A
monochromatic
#211246 #371E77 #4E2AA8 #6940CF #8F71DB

Accessibility & contrast

On white

9.46
#4E2AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#4E2AA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2AA8
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2AA8#FFFFFF#000000##FFFFFF
##4E2AA81.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AC
Deuteranopia (green-blind)
#0043A6
Tritanopia (blue-blind)
#2B4D67
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e2aa8;
/* rgb */ color: rgb(78, 42, 168);
/* oklch */ color: oklch(41.5% 0.187 288.5);
Tailwind
colors: {
  custom: {
    50: '#8967c3',
    500: '#4e2aa8',
    950: '#000000',
  },
}
SCSS
$custom: #4e2aa8;
$custom-light: #8967c3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2aa8",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 168
  },
  "hsl": {
    "h": 257.143,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41469,
    "c": 0.1868,
    "h": 288.5
  },
  "luminance": 0.06103
}

Semantic roles & 50–950 ramp

primary
#4E2AA8
secondary
#AAC36B
accent
#E345B6
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0613
muted
#7D7A82

Preview Lab

Preview with #4E2AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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