#4E2A8B#4E2A8B

#4E2A8B is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.9% C 0.152 H 295.5°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#4E2A8B
RGBrgb(78, 42, 139)
HSLhsl(262, 54%, 35%)
HSVhsv(262, 70%, 55%)
CMYKcmyk(43.9%, 69.8%, 0%, 45.5%)
CIE-LABlab(27.13, 38.82, -48.04)
CIE-LCHlch(27.13, 61.77, 308.94°)
OKLaboklab(38.88% 0.0654 -0.1373)
OKLCHoklch(38.88% 0.152 295.5)
XYZxyz(8.6288, 5.1395, 24.9585)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2A8B #678B2A
analogous
#2A368B #4E2A8B #7E2A8B
triadic
#4E2A8B #8B4E2A #2A8B4E
tetradic
#4E2A8B #8B2A36 #678B2A #2A8B7E
square
#4E2A8B #8B2A36 #678B2A #2A8B7E
split-complementary
#4E2A8B #8B7E2A #368B2A
monochromatic
#190E2D #341C5C #4E2A8B #6838BA #8960CF

Accessibility & contrast

On white

10.36
#4E2A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4E2A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2A8B
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2A8B#FFFFFF#000000##FFFFFF
##4E2A8B1.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418E
Deuteranopia (green-blind)
#003F89
Tritanopia (blue-blind)
#3E4257
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4e2a8b;
/* rgb */ color: rgb(78, 42, 139);
/* oklch */ color: oklch(38.9% 0.152 295.5);
Tailwind
colors: {
  custom: {
    50: '#8566ae',
    500: '#4e2a8b',
    950: '#000000',
  },
}
SCSS
$custom: #4e2a8b;
$custom-light: #8566ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2a8b",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 139
  },
  "hsl": {
    "h": 262.268,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38882,
    "c": 0.15207,
    "h": 295.5
  },
  "luminance": 0.0514
}

Semantic roles & 50–950 ramp

primary
#4E2A8B
secondary
#94B55C
accent
#DD4BA7
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4E2A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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