#4E2D9F#4E2D9F

#4E2D9F is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.0% C 0.173 H 289.9°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#4E2D9F
RGBrgb(78, 45, 159)
HSLhsl(257, 56%, 40%)
HSVhsv(257, 72%, 62%)
CMYKcmyk(50.9%, 71.7%, 0%, 37.6%)
CIE-LABlab(29.41, 42.93, -56.60)
CIE-LCHlch(29.41, 71.04, 307.18°)
OKLaboklab(41.04% 0.0587 -0.1625)
OKLCHoklch(41.04% 0.173 289.9)
XYZxyz(10.3365, 5.9992, 33.4075)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2D9F #7E9F2D
analogous
#2D459F #4E2D9F #872D9F
triadic
#4E2D9F #9F4E2D #2D9F4E
tetradic
#4E2D9F #9F2D45 #7E9F2D #2D9F87
square
#4E2D9F #9F2D45 #7E9F2D #2D9F87
split-complementary
#4E2D9F #9F872D #459F2D
monochromatic
#1F1240 #37206F #4E2D9F #6840C9 #8E70D6

Accessibility & contrast

On white

9.55
#4E2D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#4E2D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2D9F
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2D9F#FFFFFF#000000##FFFFFF
##4E2D9F1.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A2
Deuteranopia (green-blind)
#00439D
Tritanopia (blue-blind)
#324B63
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4e2d9f;
/* rgb */ color: rgb(78, 45, 159);
/* oklch */ color: oklch(41.0% 0.173 289.9);
Tailwind
colors: {
  custom: {
    50: '#8869bc',
    500: '#4e2d9f',
    950: '#000000',
  },
}
SCSS
$custom: #4e2d9f;
$custom-light: #8869bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2d9f",
  "rgb": {
    "r": 78,
    "g": 45,
    "b": 159
  },
  "hsl": {
    "h": 257.368,
    "s": 55.882,
    "l": 40
  },
  "oklch": {
    "l": 0.41037,
    "c": 0.17273,
    "h": 289.9
  },
  "luminance": 0.06
}

Semantic roles & 50–950 ramp

primary
#4E2D9F
secondary
#A6BE6A
accent
#DF49B4
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E2D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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