#4A176C#4A176C

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

Color values

HEX#4A176C
RGBrgb(74, 23, 108)
HSLhsl(276, 65%, 26%)
HSVhsv(276, 79%, 42%)
CMYKcmyk(31.5%, 78.7%, 0%, 57.6%)
CIE-LABlab(20.64, 39.33, -38.93)
CIE-LCHlch(20.64, 55.34, 315.30°)
OKLaboklab(33.35% 0.0854 -0.1105)
OKLCHoklch(33.35% 0.14 307.7)
XYZxyz(5.8366, 3.1514, 14.4853)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A176C #396C17
analogous
#1F176C #4A176C #6C1763
triadic
#4A176C #6C4A17 #176C4A
tetradic
#4A176C #6C1F17 #396C17 #17636C
square
#4A176C #6C1F17 #396C17 #17636C
split-complementary
#4A176C #636C17 #176C1F
monochromatic
#110519 #270C3A #4A176C #6D229E #8F2CD1

Accessibility & contrast

On white

12.88
#4A176C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A176C
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A176C#FFFFFF#000000##FFFFFF
##4A176C1.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306E
Deuteranopia (green-blind)
#00326A
Tritanopia (blue-blind)
#442C40
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4a176c;
/* rgb */ color: rgb(74, 23, 108);
/* oklch */ color: oklch(33.4% 0.140 307.7);
Tailwind
colors: {
  custom: {
    50: '#805a97',
    500: '#4a176c',
    950: '#000000',
  },
}
SCSS
$custom: #4a176c;
$custom-light: #805a97;
$custom-dark: #000000;
JSON
{
  "hex": "#4a176c",
  "rgb": {
    "r": 74,
    "g": 23,
    "b": 108
  },
  "hsl": {
    "h": 276,
    "s": 64.885,
    "l": 25.686
  },
  "oklch": {
    "l": 0.33352,
    "c": 0.13972,
    "h": 307.7
  },
  "luminance": 0.03151
}

Semantic roles & 50–950 ramp

primary
#4A176C
secondary
#65A23D
accent
#E84083
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4A176C

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

Preview Lab → · Contrast checker → · Palette generator →

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