#4E177D#4E177D

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

Color values

HEX#4E177D
RGBrgb(78, 23, 125)
HSLhsl(272, 69%, 29%)
HSVhsv(272, 82%, 49%)
CMYKcmyk(37.6%, 81.6%, 0%, 51%)
CIE-LABlab(22.70, 44.25, -46.47)
CIE-LCHlch(22.70, 64.17, 313.60°)
OKLaboklab(35.38% 0.0872 -0.1326)
OKLCHoklch(35.38% 0.159 303.3)
XYZxyz(7.1491, 3.7132, 19.7381)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E177D #467D17
analogous
#1B177D #4E177D #7D1779
triadic
#4E177D #7D4E17 #177D4E
tetradic
#4E177D #7D1B17 #467D17 #17797D
square
#4E177D #7D1B17 #467D17 #17797D
split-complementary
#4E177D #797D17 #177D1B
monochromatic
#10051A #2E0D49 #4E177D #6E21B1 #8E35DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4E177D#FFFFFF#000000##FFFFFF
##4E177D1.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)
#003580
Deuteranopia (green-blind)
#00367B
Tritanopia (blue-blind)
#44324A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4e177d;
/* rgb */ color: rgb(78, 23, 125);
/* oklch */ color: oklch(35.4% 0.159 303.3);
Tailwind
colors: {
  custom: {
    50: '#855ba3',
    500: '#4e177d',
    950: '#000000',
  },
}
SCSS
$custom: #4e177d;
$custom-light: #855ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e177d",
  "rgb": {
    "r": 78,
    "g": 23,
    "b": 125
  },
  "hsl": {
    "h": 272.353,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35378,
    "c": 0.15868,
    "h": 303.3
  },
  "luminance": 0.03713
}

Semantic roles & 50–950 ramp

primary
#4E177D
secondary
#73B23E
accent
#EC3C8D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4E177D

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

Preview Lab → · Contrast checker → · Palette generator →

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