#4E2AB4#4E2AB4

#4E2AB4 is a dark, highly saturated violet. Relative luminance 0.066; OKLCH L 42.6% C 0.201 H 286.2°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#4E2AB4
RGBrgb(78, 42, 180)
HSLhsl(256, 62%, 44%)
HSVhsv(256, 77%, 71%)
CMYKcmyk(56.7%, 76.7%, 0%, 29.4%)
CIE-LABlab(30.81, 50.50, -66.93)
CIE-LCHlch(30.81, 83.85, 307.03°)
OKLaboklab(42.61% 0.056 -0.1927)
OKLCHoklch(42.61% 0.201 286.2)
XYZxyz(12.2056, 6.5702, 43.7962)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2AB4 #90B42A
analogous
#2A4BB4 #4E2AB4 #932AB4
triadic
#4E2AB4 #B44E2A #2AB44E
tetradic
#4E2AB4 #B42A4B #90B42A #2AB493
square
#4E2AB4 #B42A4B #90B42A #2AB493
split-complementary
#4E2AB4 #B4932A #4BB42A
monochromatic
#231351 #381E82 #4E2AB4 #6C47D4 #9479E0

Accessibility & contrast

On white

9.07
#4E2AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#4E2AB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2AB4
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2AB4#FFFFFF#000000##FFFFFF
##4E2AB41.009.072.319.07
#FFFFFF9.071.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB8
Deuteranopia (green-blind)
#0044B1
Tritanopia (blue-blind)
#1D516E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4e2ab4;
/* rgb */ color: rgb(78, 42, 180);
/* oklch */ color: oklch(42.6% 0.201 286.2);
Tailwind
colors: {
  custom: {
    50: '#8b68cc',
    500: '#4e2ab4',
    950: '#000000',
  },
}
SCSS
$custom: #4e2ab4;
$custom-light: #8b68cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2ab4",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 180
  },
  "hsl": {
    "h": 255.652,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.42615,
    "c": 0.20069,
    "h": 286.2
  },
  "luminance": 0.06571
}

Semantic roles & 50–950 ramp

primary
#4E2AB4
secondary
#B1C872
accent
#E543BB
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4E2AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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