#4E2D8B#4E2D8B

#4E2D8B is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.3% C 0.148 H 294.8°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#4E2D8B
RGBrgb(78, 45, 139)
HSLhsl(261, 51%, 36%)
HSVhsv(261, 68%, 55%)
CMYKcmyk(43.9%, 67.6%, 0%, 45.5%)
CIE-LABlab(27.74, 37.15, -47.05)
CIE-LCHlch(27.74, 59.95, 308.29°)
OKLaboklab(39.32% 0.062 -0.1344)
OKLCHoklch(39.32% 0.148 294.8)
XYZxyz(8.7392, 5.3603, 24.9953)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2D8B #6A8B2D
analogous
#2D3B8B #4E2D8B #7D2D8B
triadic
#4E2D8B #8B4E2D #2D8B4E
tetradic
#4E2D8B #8B2D3B #6A8B2D #2D8B7D
square
#4E2D8B #8B2D3B #6A8B2D #2D8B7D
split-complementary
#4E2D8B #8B7D2D #3B8B2D
monochromatic
#1A0F2F #341E5D #4E2D8B #683CB9 #8A65CD

Accessibility & contrast

On white

10.13
#4E2D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#4E2D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2D8B
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2D8B#FFFFFF#000000##FFFFFF
##4E2D8B1.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428E
Deuteranopia (green-blind)
#004089
Tritanopia (blue-blind)
#3E4358
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4e2d8b;
/* rgb */ color: rgb(78, 45, 139);
/* oklch */ color: oklch(39.3% 0.148 294.8);
Tailwind
colors: {
  custom: {
    50: '#8568ae',
    500: '#4e2d8b',
    950: '#000000',
  },
}
SCSS
$custom: #4e2d8b;
$custom-light: #8568ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2d8b",
  "rgb": {
    "r": 78,
    "g": 45,
    "b": 139
  },
  "hsl": {
    "h": 261.064,
    "s": 51.087,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39319,
    "c": 0.14804,
    "h": 294.8
  },
  "luminance": 0.05361
}

Semantic roles & 50–950 ramp

primary
#4E2D8B
secondary
#96B460
accent
#DB4DA9
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4E2D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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