#4E2D7D#4E2D7D

#4E2D7D is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.2% C 0.130 H 299.1°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#4E2D7D
RGBrgb(78, 45, 125)
HSLhsl(265, 47%, 33%)
HSVhsv(265, 64%, 49%)
CMYKcmyk(37.6%, 64%, 0%, 51%)
CIE-LABlab(26.67, 33.18, -40.02)
CIE-LCHlch(26.67, 51.99, 309.66°)
OKLaboklab(38.21% 0.0634 -0.1137)
OKLCHoklch(38.21% 0.13 299.1)
XYZxyz(7.7810, 4.9771, 19.9488)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2D7D #5C7D2D
analogous
#2D347D #4E2D7D #762D7D
triadic
#4E2D7D #7D4E2D #2D7D4E
tetradic
#4E2D7D #7D2D34 #5C7D2D #2D7D76
square
#4E2D7D #7D2D34 #5C7D2D #2D7D76
split-complementary
#4E2D7D #7D762D #347D2D
monochromatic
#160D23 #321D50 #4E2D7D #6A3DAA #895FC5

Accessibility & contrast

On white

10.52
#4E2D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4E2D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2D7D
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2D7D#FFFFFF#000000##FFFFFF
##4E2D7D1.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F80
Deuteranopia (green-blind)
#0C3E7B
Tritanopia (blue-blind)
#443E50
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4e2d7d;
/* rgb */ color: rgb(78, 45, 125);
/* oklch */ color: oklch(38.2% 0.130 299.1);
Tailwind
colors: {
  custom: {
    50: '#8368a3',
    500: '#4e2d7d',
    950: '#000000',
  },
}
SCSS
$custom: #4e2d7d;
$custom-light: #8368a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2d7d",
  "rgb": {
    "r": 78,
    "g": 45,
    "b": 125
  },
  "hsl": {
    "h": 264.75,
    "s": 47.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38208,
    "c": 0.13021,
    "h": 299.1
  },
  "luminance": 0.04977
}

Semantic roles & 50–950 ramp

primary
#4E2D7D
secondary
#8AAC5A
accent
#D751A0
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E2D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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