#4A176D#4A176D

#4A176D is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.141 H 307.2°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#4A176D
RGBrgb(74, 23, 109)
HSLhsl(276, 65%, 26%)
HSVhsv(276, 79%, 43%)
CMYKcmyk(32.1%, 78.9%, 0%, 57.3%)
CIE-LABlab(20.72, 39.58, -39.44)
CIE-LCHlch(20.72, 55.87, 315.10°)
OKLaboklab(33.44% 0.0852 -0.1121)
OKLCHoklch(33.44% 0.141 307.2)
XYZxyz(5.8902, 3.1728, 14.7672)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A176D #3A6D17
analogous
#1F176D #4A176D #6D1765
triadic
#4A176D #6D4A17 #176D4A
tetradic
#4A176D #6D1F17 #3A6D17 #17656D
square
#4A176D #6D1F17 #3A6D17 #17656D
split-complementary
#4A176D #656D17 #176D1F
monochromatic
#110519 #280C3A #4A176D #6C22A0 #8F2CD2

Accessibility & contrast

On white

12.85
#4A176D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#4A176D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A176D
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A176D#FFFFFF#000000##FFFFFF
##4A176D1.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306F
Deuteranopia (green-blind)
#00326B
Tritanopia (blue-blind)
#442C41
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4a176d;
/* rgb */ color: rgb(74, 23, 109);
/* oklch */ color: oklch(33.4% 0.141 307.2);
Tailwind
colors: {
  custom: {
    50: '#815a97',
    500: '#4a176d',
    950: '#000000',
  },
}
SCSS
$custom: #4a176d;
$custom-light: #815a97;
$custom-dark: #000000;
JSON
{
  "hex": "#4a176d",
  "rgb": {
    "r": 74,
    "g": 23,
    "b": 109
  },
  "hsl": {
    "h": 275.581,
    "s": 65.152,
    "l": 25.882
  },
  "oklch": {
    "l": 0.33436,
    "c": 0.14079,
    "h": 307.2
  },
  "luminance": 0.03173
}

Semantic roles & 50–950 ramp

primary
#4A176D
secondary
#66A33D
accent
#E84084
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A176D

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

Preview Lab → · Contrast checker → · Palette generator →

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