#4E2D9D#4E2D9D

#4E2D9D is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.9% C 0.170 H 290.3°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#4E2D9D
RGBrgb(78, 45, 157)
HSLhsl(258, 55%, 40%)
HSVhsv(258, 71%, 62%)
CMYKcmyk(50.3%, 71.3%, 0%, 38.4%)
CIE-LABlab(29.24, 42.34, -55.67)
CIE-LCHlch(29.24, 69.94, 307.26°)
OKLaboklab(40.86% 0.0591 -0.1597)
OKLCHoklch(40.86% 0.17 290.3)
XYZxyz(10.1643, 5.9304, 32.5009)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2D9D #7C9D2D
analogous
#2D449D #4E2D9D #862D9D
triadic
#4E2D9D #9D4E2D #2D9D4E
tetradic
#4E2D9D #9D2D44 #7C9D2D #2D9D86
square
#4E2D9D #9D2D44 #7C9D2D #2D9D86
split-complementary
#4E2D9D #9D862D #449D2D
monochromatic
#1F123E #361F6D #4E2D9D #683FC8 #8D6FD6

Accessibility & contrast

On white

9.61
#4E2D9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#4E2D9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2D9D
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2D9D#FFFFFF#000000##FFFFFF
##4E2D9D1.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A0
Deuteranopia (green-blind)
#00429B
Tritanopia (blue-blind)
#334A62
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4e2d9d;
/* rgb */ color: rgb(78, 45, 157);
/* oklch */ color: oklch(40.9% 0.170 290.3);
Tailwind
colors: {
  custom: {
    50: '#8769bb',
    500: '#4e2d9d',
    950: '#000000',
  },
}
SCSS
$custom: #4e2d9d;
$custom-light: #8769bb;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2d9d",
  "rgb": {
    "r": 78,
    "g": 45,
    "b": 157
  },
  "hsl": {
    "h": 257.679,
    "s": 55.446,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40859,
    "c": 0.17031,
    "h": 290.3
  },
  "luminance": 0.05931
}

Semantic roles & 50–950 ramp

primary
#4E2D9D
secondary
#A4BD69
accent
#DF49B3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E2D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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