#4A176A#4A176A

#4A176A is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.138 H 308.6°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#4A176A
RGBrgb(74, 23, 106)
HSLhsl(277, 64%, 25%)
HSVhsv(277, 78%, 42%)
CMYKcmyk(30.2%, 78.3%, 0%, 58.4%)
CIE-LABlab(20.48, 38.84, -37.89)
CIE-LCHlch(20.48, 54.26, 315.71°)
OKLaboklab(33.18% 0.0859 -0.1075)
OKLCHoklch(33.18% 0.138 308.6)
XYZxyz(5.7314, 3.1093, 13.9311)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A176A #376A17
analogous
#20176A #4A176A #6A1761
triadic
#4A176A #6A4A17 #176A4A
tetradic
#4A176A #6A2017 #376A17 #17616A
square
#4A176A #6A2017 #376A17 #17616A
split-complementary
#4A176A #616A17 #176A20
monochromatic
#120519 #270C38 #4A176A #6D229C #902DCF

Accessibility & contrast

On white

12.95
#4A176A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#4A176A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A176A
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A176A#FFFFFF#000000##FFFFFF
##4A176A1.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6C
Deuteranopia (green-blind)
#003268
Tritanopia (blue-blind)
#452B3F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4a176a;
/* rgb */ color: rgb(74, 23, 106);
/* oklch */ color: oklch(33.2% 0.138 308.6);
Tailwind
colors: {
  custom: {
    50: '#805a95',
    500: '#4a176a',
    950: '#000000',
  },
}
SCSS
$custom: #4a176a;
$custom-light: #805a95;
$custom-dark: #000000;
JSON
{
  "hex": "#4a176a",
  "rgb": {
    "r": 74,
    "g": 23,
    "b": 106
  },
  "hsl": {
    "h": 276.867,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.33185,
    "c": 0.13759,
    "h": 308.6
  },
  "luminance": 0.03109
}

Semantic roles & 50–950 ramp

primary
#4A176A
secondary
#63A03D
accent
#E74081
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4A176A

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

Preview Lab → · Contrast checker → · Palette generator →

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