#4E1572#4E1572

#4E1572 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.149 H 308.0°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#4E1572
RGBrgb(78, 21, 114)
HSLhsl(277, 69%, 26%)
HSVhsv(277, 82%, 45%)
CMYKcmyk(31.6%, 81.6%, 0%, 55.3%)
CIE-LABlab(21.47, 42.39, -41.43)
CIE-LCHlch(21.47, 59.27, 315.66°)
OKLaboklab(34.22% 0.0919 -0.1177)
OKLCHoklch(34.22% 0.149 308)
XYZxyz(6.4467, 3.3710, 16.2274)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1572 #397215
analogous
#201572 #4E1572 #721568
triadic
#4E1572 #724E15 #15724E
tetradic
#4E1572 #722015 #397215 #156872
square
#4E1572 #722015 #397215 #156872
split-complementary
#4E1572 #687215 #157220
monochromatic
#12051A #2B0B3E #4E1572 #711FA6 #942AD8

Accessibility & contrast

On white

12.54
#4E1572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#4E1572 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1572
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1572#FFFFFF#000000##FFFFFF
##4E15721.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003275
Deuteranopia (green-blind)
#003470
Tritanopia (blue-blind)
#482D43
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4e1572;
/* rgb */ color: rgb(78, 21, 114);
/* oklch */ color: oklch(34.2% 0.149 308.0);
Tailwind
colors: {
  custom: {
    50: '#845a9b',
    500: '#4e1572',
    950: '#000000',
  },
}
SCSS
$custom: #4e1572;
$custom-light: #845a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1572",
  "rgb": {
    "r": 78,
    "g": 21,
    "b": 114
  },
  "hsl": {
    "h": 276.774,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.34223,
    "c": 0.14939,
    "h": 308
  },
  "luminance": 0.03371
}

Semantic roles & 50–950 ramp

primary
#4E1572
secondary
#65A83B
accent
#EC3C80
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E1572

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

Preview Lab → · Contrast checker → · Palette generator →

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