#4E2DA2#4E2DA2

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

Color values

HEX#4E2DA2
RGBrgb(78, 45, 162)
HSLhsl(257, 57%, 41%)
HSVhsv(257, 72%, 64%)
CMYKcmyk(51.9%, 72.2%, 0%, 36.5%)
CIE-LABlab(29.67, 43.80, -57.99)
CIE-LCHlch(29.67, 72.67, 307.06°)
OKLaboklab(41.31% 0.0581 -0.1665)
OKLCHoklch(41.31% 0.176 289.2)
XYZxyz(10.6000, 6.1046, 34.7952)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2DA2 #81A22D
analogous
#2D46A2 #4E2DA2 #882DA2
triadic
#4E2DA2 #A24E2D #2DA24E
tetradic
#4E2DA2 #A22D46 #81A22D #2DA288
square
#4E2DA2 #A22D46 #81A22D #2DA288
split-complementary
#4E2DA2 #A2882D #46A22D
monochromatic
#201242 #372072 #4E2DA2 #6842CA #8E72D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4E2DA2#FFFFFF#000000##FFFFFF
##4E2DA21.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)
#0048A5
Deuteranopia (green-blind)
#0043A0
Tritanopia (blue-blind)
#304C64
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e2da2;
/* rgb */ color: rgb(78, 45, 162);
/* oklch */ color: oklch(41.3% 0.176 289.2);
Tailwind
colors: {
  custom: {
    50: '#8869bf',
    500: '#4e2da2',
    950: '#000000',
  },
}
SCSS
$custom: #4e2da2;
$custom-light: #8869bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2da2",
  "rgb": {
    "r": 78,
    "g": 45,
    "b": 162
  },
  "hsl": {
    "h": 256.923,
    "s": 56.522,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41307,
    "c": 0.17636,
    "h": 289.2
  },
  "luminance": 0.06105
}

Semantic roles & 50–950 ramp

primary
#4E2DA2
secondary
#A8BF6C
accent
#E048B5
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E2DA2

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

Preview Lab → · Contrast checker → · Palette generator →

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