#4E2D8D#4E2D8D

#4E2D8D is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.5% C 0.151 H 294.2°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#4E2D8D
RGBrgb(78, 45, 141)
HSLhsl(261, 52%, 36%)
HSVhsv(261, 68%, 55%)
CMYKcmyk(44.7%, 68.1%, 0%, 44.7%)
CIE-LABlab(27.90, 37.72, -48.03)
CIE-LCHlch(27.90, 61.07, 308.15°)
OKLaboklab(39.48% 0.0618 -0.1373)
OKLCHoklch(39.48% 0.151 294.2)
XYZxyz(8.8867, 5.4193, 25.7720)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2D8D #6C8D2D
analogous
#2D3C8D #4E2D8D #7E2D8D
triadic
#4E2D8D #8D4E2D #2D8D4E
tetradic
#4E2D8D #8D2D3C #6C8D2D #2D8D7E
square
#4E2D8D #8D2D3C #6C8D2D #2D8D7E
split-complementary
#4E2D8D #8D7E2D #3C8D2D
monochromatic
#1B0F30 #341E5F #4E2D8D #683CBB #8A66CE

Accessibility & contrast

On white

10.08
#4E2D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#4E2D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2D8D
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2D8D#FFFFFF#000000##FFFFFF
##4E2D8D1.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004390
Deuteranopia (green-blind)
#00408B
Tritanopia (blue-blind)
#3D4459
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4e2d8d;
/* rgb */ color: rgb(78, 45, 141);
/* oklch */ color: oklch(39.5% 0.151 294.2);
Tailwind
colors: {
  custom: {
    50: '#8568af',
    500: '#4e2d8d',
    950: '#000000',
  },
}
SCSS
$custom: #4e2d8d;
$custom-light: #8568af;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2d8d",
  "rgb": {
    "r": 78,
    "g": 45,
    "b": 141
  },
  "hsl": {
    "h": 260.625,
    "s": 51.613,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39484,
    "c": 0.15055,
    "h": 294.2
  },
  "luminance": 0.0542
}

Semantic roles & 50–950 ramp

primary
#4E2D8D
secondary
#98B561
accent
#DB4DAA
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4E2D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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