#4D177D#4D177D

#4D177D is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.158 H 302.7°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#4D177D
RGBrgb(77, 23, 125)
HSLhsl(272, 69%, 29%)
HSVhsv(272, 82%, 49%)
CMYKcmyk(38.4%, 81.6%, 0%, 51%)
CIE-LABlab(22.55, 44.08, -46.71)
CIE-LCHlch(22.55, 64.23, 313.34°)
OKLaboklab(35.24% 0.0857 -0.1333)
OKLCHoklch(35.24% 0.158 302.7)
XYZxyz(7.0678, 3.6712, 19.7343)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D177D #477D17
analogous
#1A177D #4D177D #7D177A
triadic
#4D177D #7D4D17 #177D4D
tetradic
#4D177D #7D1A17 #477D17 #177A7D
square
#4D177D #7D1A17 #477D17 #177A7D
split-complementary
#4D177D #7A7D17 #177D1A
monochromatic
#10051A #2D0D49 #4D177D #6D21B1 #8C35DA

Accessibility & contrast

On white

12.11
#4D177D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4D177D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D177D
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D177D#FFFFFF#000000##FFFFFF
##4D177D1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#00367B
Tritanopia (blue-blind)
#43324A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4d177d;
/* rgb */ color: rgb(77, 23, 125);
/* oklch */ color: oklch(35.2% 0.158 302.7);
Tailwind
colors: {
  custom: {
    50: '#845ba3',
    500: '#4d177d',
    950: '#000000',
  },
}
SCSS
$custom: #4d177d;
$custom-light: #845ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d177d",
  "rgb": {
    "r": 77,
    "g": 23,
    "b": 125
  },
  "hsl": {
    "h": 271.765,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35245,
    "c": 0.15847,
    "h": 302.7
  },
  "luminance": 0.03671
}

Semantic roles & 50–950 ramp

primary
#4D177D
secondary
#74B23E
accent
#EC3C8F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4D177D

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

Preview Lab → · Contrast checker → · Palette generator →

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