#4E2D8A#4E2D8A

#4E2D8A is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.2% C 0.147 H 295.1°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#4E2D8A
RGBrgb(78, 45, 138)
HSLhsl(261, 51%, 36%)
HSVhsv(261, 67%, 54%)
CMYKcmyk(43.5%, 67.4%, 0%, 45.9%)
CIE-LABlab(27.66, 36.86, -46.56)
CIE-LCHlch(27.66, 59.39, 308.37°)
OKLaboklab(39.24% 0.0622 -0.133)
OKLCHoklch(39.24% 0.147 295.1)
XYZxyz(8.6665, 5.3312, 24.6122)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2D8A #698A2D
analogous
#2D3A8A #4E2D8A #7C2D8A
triadic
#4E2D8A #8A4E2D #2D8A4E
tetradic
#4E2D8A #8A2D3A #698A2D #2D8A7C
square
#4E2D8A #8A2D3A #698A2D #2D8A7C
split-complementary
#4E2D8A #8A7C2D #3A8A2D
monochromatic
#1A0F2E #341E5C #4E2D8A #683CB8 #8A65CD

Accessibility & contrast

On white

10.16
#4E2D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#4E2D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2D8A
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2D8A#FFFFFF#000000##FFFFFF
##4E2D8A1.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428D
Deuteranopia (green-blind)
#004088
Tritanopia (blue-blind)
#3E4357
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4e2d8a;
/* rgb */ color: rgb(78, 45, 138);
/* oklch */ color: oklch(39.2% 0.147 295.1);
Tailwind
colors: {
  custom: {
    50: '#8568ad',
    500: '#4e2d8a',
    950: '#000000',
  },
}
SCSS
$custom: #4e2d8a;
$custom-light: #8568ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2d8a",
  "rgb": {
    "r": 78,
    "g": 45,
    "b": 138
  },
  "hsl": {
    "h": 261.29,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39237,
    "c": 0.14678,
    "h": 295.1
  },
  "luminance": 0.05331
}

Semantic roles & 50–950 ramp

primary
#4E2D8A
secondary
#96B360
accent
#DA4DA8
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4E2D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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