#4E1D72#4E1D72

#4E1D72 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.140 H 306.8°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#4E1D72
RGBrgb(78, 29, 114)
HSLhsl(275, 59%, 28%)
HSVhsv(275, 75%, 45%)
CMYKcmyk(31.6%, 74.6%, 0%, 55.3%)
CIE-LABlab(22.70, 38.89, -39.44)
CIE-LCHlch(22.70, 55.38, 314.60°)
OKLaboklab(35.09% 0.0839 -0.1119)
OKLCHoklch(35.09% 0.14 306.8)
XYZxyz(6.6179, 3.7134, 16.2845)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1D72 #41721D
analogous
#231D72 #4E1D72 #721D6B
triadic
#4E1D72 #724E1D #1D724E
tetradic
#4E1D72 #72231D #41721D #1D6B72
square
#4E1D72 #72231D #41721D #1D6B72
split-complementary
#4E1D72 #6B721D #1D7223
monochromatic
#110618 #2D1141 #4E1D72 #6F29A3 #903CCD

Accessibility & contrast

On white

12.05
#4E1D72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1D72
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1D72#FFFFFF#000000##FFFFFF
##4E1D721.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003574
Deuteranopia (green-blind)
#013770
Tritanopia (blue-blind)
#483145
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4e1d72;
/* rgb */ color: rgb(78, 29, 114);
/* oklch */ color: oklch(35.1% 0.140 306.8);
Tailwind
colors: {
  custom: {
    50: '#835e9b',
    500: '#4e1d72',
    950: '#000000',
  },
}
SCSS
$custom: #4e1d72;
$custom-light: #835e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1d72",
  "rgb": {
    "r": 78,
    "g": 29,
    "b": 114
  },
  "hsl": {
    "h": 274.588,
    "s": 59.441,
    "l": 28.039
  },
  "oklch": {
    "l": 0.3509,
    "c": 0.13989,
    "h": 306.8
  },
  "luminance": 0.03713
}

Semantic roles & 50–950 ramp

primary
#4E1D72
secondary
#6EA645
accent
#E34588
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E1D72

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

Preview Lab → · Contrast checker → · Palette generator →

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