#4A177B#4A177B

#4A177B is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.156 H 301.6°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#4A177B
RGBrgb(74, 23, 123)
HSLhsl(271, 68%, 29%)
HSVhsv(271, 81%, 48%)
CMYKcmyk(39.8%, 81.3%, 0%, 51.8%)
CIE-LABlab(21.94, 43.06, -46.46)
CIE-LCHlch(21.94, 63.35, 312.82°)
OKLaboklab(34.67% 0.0816 -0.1327)
OKLCHoklch(34.67% 0.156 301.6)
XYZxyz(6.7047, 3.4987, 19.0571)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A177B #487B17
analogous
#18177B #4A177B #7B177A
triadic
#4A177B #7B4A17 #177B4A
tetradic
#4A177B #7B1817 #487B17 #177A7B
square
#4A177B #7B1817 #487B17 #177A7B
split-complementary
#4A177B #7A7B17 #177B18
monochromatic
#10051A #2B0D47 #4A177B #6921AF #8833D9

Accessibility & contrast

On white

12.35
#4A177B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4A177B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A177B
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A177B#FFFFFF#000000##FFFFFF
##4A177B1.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#003479
Tritanopia (blue-blind)
#3F3249
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4a177b;
/* rgb */ color: rgb(74, 23, 123);
/* oklch */ color: oklch(34.7% 0.156 301.6);
Tailwind
colors: {
  custom: {
    50: '#825ba2',
    500: '#4a177b',
    950: '#000000',
  },
}
SCSS
$custom: #4a177b;
$custom-light: #825ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#4a177b",
  "rgb": {
    "r": 74,
    "g": 23,
    "b": 123
  },
  "hsl": {
    "h": 270.6,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.34668,
    "c": 0.15578,
    "h": 301.6
  },
  "luminance": 0.03499
}

Semantic roles & 50–950 ramp

primary
#4A177B
secondary
#76B03E
accent
#EB3C92
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A177B

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

Preview Lab → · Contrast checker → · Palette generator →

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