#4E2D9E#4E2D9E

#4E2D9E is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.9% C 0.172 H 290.1°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#4E2D9E
RGBrgb(78, 45, 158)
HSLhsl(258, 56%, 40%)
HSVhsv(258, 72%, 62%)
CMYKcmyk(50.6%, 71.5%, 0%, 38%)
CIE-LABlab(29.32, 42.64, -56.13)
CIE-LCHlch(29.32, 70.49, 307.22°)
OKLaboklab(40.95% 0.0589 -0.1611)
OKLCHoklch(40.95% 0.172 290.1)
XYZxyz(10.2501, 5.9647, 32.9523)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2D9E #7D9E2D
analogous
#2D459E #4E2D9E #872D9E
triadic
#4E2D9E #9E4E2D #2D9E4E
tetradic
#4E2D9E #9E2D45 #7D9E2D #2D9E87
square
#4E2D9E #9E2D45 #7D9E2D #2D9E87
split-complementary
#4E2D9E #9E872D #459E2D
monochromatic
#1F123F #361F6E #4E2D9E #6840C9 #8D6FD6

Accessibility & contrast

On white

9.58
#4E2D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2D9E
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2D9E#FFFFFF#000000##FFFFFF
##4E2D9E1.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e2d9e;
/* rgb */ color: rgb(78, 45, 158);
/* oklch */ color: oklch(40.9% 0.172 290.1);
Tailwind
colors: {
  custom: {
    50: '#8769bc',
    500: '#4e2d9e',
    950: '#000000',
  },
}
SCSS
$custom: #4e2d9e;
$custom-light: #8769bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2d9e",
  "rgb": {
    "r": 78,
    "g": 45,
    "b": 158
  },
  "hsl": {
    "h": 257.522,
    "s": 55.665,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40948,
    "c": 0.17152,
    "h": 290.1
  },
  "luminance": 0.05965
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E2D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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