#4E1D71#4E1D71

#4E1D71 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.0% C 0.139 H 307.3°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#4E1D71
RGBrgb(78, 29, 113)
HSLhsl(275, 59%, 28%)
HSVhsv(275, 74%, 44%)
CMYKcmyk(31%, 74.3%, 0%, 55.7%)
CIE-LABlab(22.62, 38.64, -38.92)
CIE-LCHlch(22.62, 54.84, 314.79°)
OKLaboklab(35.01% 0.0841 -0.1104)
OKLCHoklch(35.01% 0.139 307.3)
XYZxyz(6.5613, 3.6908, 15.9863)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1D71 #40711D
analogous
#241D71 #4E1D71 #711D6A
triadic
#4E1D71 #714E1D #1D714E
tetradic
#4E1D71 #71241D #40711D #1D6A71
square
#4E1D71 #71241D #40711D #1D6A71
split-complementary
#4E1D71 #6A711D #1D7124
monochromatic
#110618 #2C1140 #4E1D71 #7029A2 #903CCD

Accessibility & contrast

On white

12.08
#4E1D71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4E1D71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1D71
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1D71#FFFFFF#000000##FFFFFF
##4E1D711.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#03366F
Tritanopia (blue-blind)
#483045
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4e1d71;
/* rgb */ color: rgb(78, 29, 113);
/* oklch */ color: oklch(35.0% 0.139 307.3);
Tailwind
colors: {
  custom: {
    50: '#835e9a',
    500: '#4e1d71',
    950: '#000000',
  },
}
SCSS
$custom: #4e1d71;
$custom-light: #835e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1d71",
  "rgb": {
    "r": 78,
    "g": 29,
    "b": 113
  },
  "hsl": {
    "h": 275,
    "s": 59.155,
    "l": 27.843
  },
  "oklch": {
    "l": 0.35009,
    "c": 0.13878,
    "h": 307.3
  },
  "luminance": 0.03691
}

Semantic roles & 50–950 ramp

primary
#4E1D71
secondary
#6DA544
accent
#E24587
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E1D71

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

Preview Lab → · Contrast checker → · Palette generator →

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