#4E2A82#4E2A82

#4E2A82 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.1% C 0.141 H 298.2°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#4E2A82
RGBrgb(78, 42, 130)
HSLhsl(265, 51%, 34%)
HSVhsv(265, 68%, 51%)
CMYKcmyk(40%, 67.7%, 0%, 49%)
CIE-LABlab(26.41, 36.30, -43.59)
CIE-LCHlch(26.41, 56.72, 309.79°)
OKLaboklab(38.14% 0.0666 -0.1242)
OKLCHoklch(38.14% 0.141 298.2)
XYZxyz(7.9981, 4.8872, 21.6367)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2A82 #5E822A
analogous
#2A3282 #4E2A82 #7A2A82
triadic
#4E2A82 #824E2A #2A824E
tetradic
#4E2A82 #822A32 #5E822A #2A827A
square
#4E2A82 #822A32 #5E822A #2A827A
split-complementary
#4E2A82 #827A2A #32822A
monochromatic
#160C25 #321B54 #4E2A82 #6A39B0 #895CCA

Accessibility & contrast

On white

10.62
#4E2A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4E2A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2A82
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2A82#FFFFFF#000000##FFFFFF
##4E2A821.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F85
Deuteranopia (green-blind)
#003E80
Tritanopia (blue-blind)
#423E52
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4e2a82;
/* rgb */ color: rgb(78, 42, 130);
/* oklch */ color: oklch(38.1% 0.141 298.2);
Tailwind
colors: {
  custom: {
    50: '#8466a7',
    500: '#4e2a82',
    950: '#000000',
  },
}
SCSS
$custom: #4e2a82;
$custom-light: #8466a7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2a82",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 130
  },
  "hsl": {
    "h": 264.545,
    "s": 51.163,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38141,
    "c": 0.14095,
    "h": 298.2
  },
  "luminance": 0.04887
}

Semantic roles & 50–950 ramp

primary
#4E2A82
secondary
#8CB058
accent
#DB4DA1
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E2A82

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

Preview Lab → · Contrast checker → · Palette generator →

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