#4A177D#4A177D

#4A177D is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.9% C 0.158 H 300.9°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#4A177D
RGBrgb(74, 23, 125)
HSLhsl(270, 69%, 29%)
HSVhsv(270, 82%, 49%)
CMYKcmyk(40.8%, 81.6%, 0%, 51%)
CIE-LABlab(22.12, 43.57, -47.44)
CIE-LCHlch(22.12, 64.41, 312.57°)
OKLaboklab(34.85% 0.081 -0.1356)
OKLCHoklch(34.85% 0.158 300.9)
XYZxyz(6.8312, 3.5493, 19.7232)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A177D #4A7D17
analogous
#17177D #4A177D #7D177D
triadic
#4A177D #7D4A17 #177D4A
tetradic
#4A177D #7D1717 #4A7D17 #177D7D
square
#4A177D #7D1717 #4A7D17 #177D7D
split-complementary
#4A177D #7D7D17 #177D17
monochromatic
#0F051A #2B0D49 #4A177D #6921B1 #8735DA

Accessibility & contrast

On white

12.28
#4A177D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4A177D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A177D
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A177D#FFFFFF#000000##FFFFFF
##4A177D1.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#00347B
Tritanopia (blue-blind)
#3E334A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4a177d;
/* rgb */ color: rgb(74, 23, 125);
/* oklch */ color: oklch(34.9% 0.158 300.9);
Tailwind
colors: {
  custom: {
    50: '#825ba4',
    500: '#4a177d',
    950: '#000000',
  },
}
SCSS
$custom: #4a177d;
$custom-light: #825ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#4a177d",
  "rgb": {
    "r": 74,
    "g": 23,
    "b": 125
  },
  "hsl": {
    "h": 270,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.34851,
    "c": 0.15791,
    "h": 300.9
  },
  "luminance": 0.03549
}

Semantic roles & 50–950 ramp

primary
#4A177D
secondary
#78B23E
accent
#EC3C94
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A177D

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

Preview Lab → · Contrast checker → · Palette generator →

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