#4E2DB4#4E2DB4

#4E2DB4 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.0% C 0.198 H 285.8°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#4E2DB4
RGBrgb(78, 45, 180)
HSLhsl(255, 60%, 44%)
HSVhsv(255, 75%, 71%)
CMYKcmyk(56.7%, 75%, 0%, 29.4%)
CIE-LABlab(31.33, 49.02, -66.08)
CIE-LCHlch(31.33, 82.28, 306.57°)
OKLaboklab(42.98% 0.0539 -0.1902)
OKLCHoklch(42.98% 0.198 285.8)
XYZxyz(12.3160, 6.7910, 43.8330)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2DB4 #93B42D
analogous
#2D4FB4 #4E2DB4 #922DB4
triadic
#4E2DB4 #B44E2D #2DB44E
tetradic
#4E2DB4 #B42D4F #93B42D #2DB492
square
#4E2DB4 #B42D4F #93B42D #2DB492
split-complementary
#4E2DB4 #B4922D #4FB42D
monochromatic
#241552 #392183 #4E2DB4 #6D4CD2 #957DDE

Accessibility & contrast

On white

8.90
#4E2DB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#4E2DB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2DB4
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2DB4#FFFFFF#000000##FFFFFF
##4E2DB41.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB8
Deuteranopia (green-blind)
#0046B2
Tritanopia (blue-blind)
#1D536E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4e2db4;
/* rgb */ color: rgb(78, 45, 180);
/* oklch */ color: oklch(43.0% 0.198 285.8);
Tailwind
colors: {
  custom: {
    50: '#8b6acc',
    500: '#4e2db4',
    950: '#000000',
  },
}
SCSS
$custom: #4e2db4;
$custom-light: #8b6acc;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2db4",
  "rgb": {
    "r": 78,
    "g": 45,
    "b": 180
  },
  "hsl": {
    "h": 254.667,
    "s": 60,
    "l": 44.118
  },
  "oklch": {
    "l": 0.42979,
    "c": 0.19772,
    "h": 285.8
  },
  "luminance": 0.06792
}

Semantic roles & 50–950 ramp

primary
#4E2DB4
secondary
#B3C776
accent
#E345BC
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4E2DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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