#4E2D8E#4E2D8E

#4E2D8E is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.6% C 0.152 H 294.0°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#4E2D8E
RGBrgb(78, 45, 142)
HSLhsl(260, 52%, 37%)
HSVhsv(260, 68%, 56%)
CMYKcmyk(45.1%, 68.3%, 0%, 44.3%)
CIE-LABlab(27.98, 38.01, -48.52)
CIE-LCHlch(27.98, 61.63, 308.08°)
OKLaboklab(39.57% 0.0616 -0.1387)
OKLCHoklch(39.57% 0.152 294)
XYZxyz(8.9614, 5.4492, 26.1656)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2D8E #6D8E2D
analogous
#2D3D8E #4E2D8E #7F2D8E
triadic
#4E2D8E #8E4E2D #2D8E4E
tetradic
#4E2D8E #8E2D3D #6D8E2D #2D8E7F
square
#4E2D8E #8E2D3D #6D8E2D #2D8E7F
split-complementary
#4E2D8E #8E7F2D #3D8E2D
monochromatic
#1B1031 #341E60 #4E2D8E #683CBC #8A67CF

Accessibility & contrast

On white

10.05
#4E2D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#4E2D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2D8E
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2D8E#FFFFFF#000000##FFFFFF
##4E2D8E1.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#00408C
Tritanopia (blue-blind)
#3C4459
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4e2d8e;
/* rgb */ color: rgb(78, 45, 142);
/* oklch */ color: oklch(39.6% 0.152 294.0);
Tailwind
colors: {
  custom: {
    50: '#8568b0',
    500: '#4e2d8e',
    950: '#000000',
  },
}
SCSS
$custom: #4e2d8e;
$custom-light: #8568b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2d8e",
  "rgb": {
    "r": 78,
    "g": 45,
    "b": 142
  },
  "hsl": {
    "h": 260.412,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39567,
    "c": 0.1518,
    "h": 294
  },
  "luminance": 0.05449
}

Semantic roles & 50–950 ramp

primary
#4E2D8E
secondary
#99B561
accent
#DB4CAB
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4E2D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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