#4E2D9C#4E2D9C

#4E2D9C is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.8% C 0.169 H 290.5°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#4E2D9C
RGBrgb(78, 45, 156)
HSLhsl(258, 55%, 39%)
HSVhsv(258, 71%, 61%)
CMYKcmyk(50%, 71.2%, 0%, 38.8%)
CIE-LABlab(29.15, 42.05, -55.20)
CIE-LCHlch(29.15, 69.40, 307.30°)
OKLaboklab(40.77% 0.0593 -0.1584)
OKLCHoklch(40.77% 0.169 290.5)
XYZxyz(10.0793, 5.8964, 32.0531)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2D9C #7B9C2D
analogous
#2D449C #4E2D9C #862D9C
triadic
#4E2D9C #9C4E2D #2D9C4E
tetradic
#4E2D9C #9C2D44 #7B9C2D #2D9C86
square
#4E2D9C #9C2D44 #7B9C2D #2D9C86
split-complementary
#4E2D9C #9C862D #449C2D
monochromatic
#1F123D #361F6D #4E2D9C #673FC8 #8D6ED5

Accessibility & contrast

On white

9.64
#4E2D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#4E2D9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2D9C
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2D9C#FFFFFF#000000##FFFFFF
##4E2D9C1.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479F
Deuteranopia (green-blind)
#00429A
Tritanopia (blue-blind)
#344961
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4e2d9c;
/* rgb */ color: rgb(78, 45, 156);
/* oklch */ color: oklch(40.8% 0.169 290.5);
Tailwind
colors: {
  custom: {
    50: '#8769ba',
    500: '#4e2d9c',
    950: '#000000',
  },
}
SCSS
$custom: #4e2d9c;
$custom-light: #8769ba;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2d9c",
  "rgb": {
    "r": 78,
    "g": 45,
    "b": 156
  },
  "hsl": {
    "h": 257.838,
    "s": 55.224,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40771,
    "c": 0.16909,
    "h": 290.5
  },
  "luminance": 0.05897
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E2D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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