#4E1D7E#4E1D7E

#4E1D7E is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.153 H 302.1°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#4E1D7E
RGBrgb(78, 29, 126)
HSLhsl(270, 63%, 30%)
HSVhsv(270, 77%, 49%)
CMYKcmyk(38.1%, 77%, 0%, 50.6%)
CIE-LABlab(23.69, 41.92, -45.49)
CIE-LCHlch(23.69, 61.86, 312.66°)
OKLaboklab(36.1% 0.0814 -0.1297)
OKLCHoklch(36.1% 0.153 302.1)
XYZxyz(7.3462, 4.0048, 20.1206)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1D7E #4D7E1D
analogous
#1D1D7E #4E1D7E #7E1D7E
triadic
#4E1D7E #7E4E1D #1D7E4E
tetradic
#4E1D7E #7E1D1D #4D7E1D #1D7E7E
square
#4E1D7E #7E1D1D #4D7E1D #1D7E7E
split-complementary
#4E1D7E #7E7E1D #1D7E1D
monochromatic
#10061B #2F124C #4E1D7E #6D28B0 #8B42D3

Accessibility & contrast

On white

11.66
#4E1D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4E1D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1D7E
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1D7E#FFFFFF#000000##FFFFFF
##4E1D7E1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#00387C
Tritanopia (blue-blind)
#44364C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4e1d7e;
/* rgb */ color: rgb(78, 29, 126);
/* oklch */ color: oklch(36.1% 0.153 302.1);
Tailwind
colors: {
  custom: {
    50: '#855ea4',
    500: '#4e1d7e',
    950: '#000000',
  },
}
SCSS
$custom: #4e1d7e;
$custom-light: #855ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1d7e",
  "rgb": {
    "r": 78,
    "g": 29,
    "b": 126
  },
  "hsl": {
    "h": 270.309,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.36098,
    "c": 0.15318,
    "h": 302.1
  },
  "luminance": 0.04005
}

Semantic roles & 50–950 ramp

primary
#4E1D7E
secondary
#7BB145
accent
#E64293
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4E1D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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