#4E2D9B#4E2D9B

#4E2D9B is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.7% C 0.168 H 290.7°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#4E2D9B
RGBrgb(78, 45, 155)
HSLhsl(258, 55%, 39%)
HSVhsv(258, 71%, 61%)
CMYKcmyk(49.7%, 71%, 0%, 39.2%)
CIE-LABlab(29.06, 41.77, -54.73)
CIE-LCHlch(29.06, 68.85, 307.35°)
OKLaboklab(40.68% 0.0595 -0.157)
OKLCHoklch(40.68% 0.168 290.7)
XYZxyz(9.9950, 5.8626, 31.6090)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2D9B #7A9B2D
analogous
#2D439B #4E2D9B #852D9B
triadic
#4E2D9B #9B4E2D #2D9B4E
tetradic
#4E2D9B #9B2D43 #7A9B2D #2D9B85
square
#4E2D9B #9B2D43 #7A9B2D #2D9B85
split-complementary
#4E2D9B #9B852D #439B2D
monochromatic
#1E113C #361F6C #4E2D9B #673EC7 #8D6ED5

Accessibility & contrast

On white

9.67
#4E2D9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#4E2D9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2D9B
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2D9B#FFFFFF#000000##FFFFFF
##4E2D9B1.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469E
Deuteranopia (green-blind)
#004299
Tritanopia (blue-blind)
#354960
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4e2d9b;
/* rgb */ color: rgb(78, 45, 155);
/* oklch */ color: oklch(40.7% 0.168 290.7);
Tailwind
colors: {
  custom: {
    50: '#8769b9',
    500: '#4e2d9b',
    950: '#000000',
  },
}
SCSS
$custom: #4e2d9b;
$custom-light: #8769b9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2d9b",
  "rgb": {
    "r": 78,
    "g": 45,
    "b": 155
  },
  "hsl": {
    "h": 258,
    "s": 55,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40682,
    "c": 0.16787,
    "h": 290.7
  },
  "luminance": 0.05863
}

Semantic roles & 50–950 ramp

primary
#4E2D9B
secondary
#A3BC68
accent
#DE49B2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E2D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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