#4A176B#4A176B

#4A176B is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.139 H 308.2°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#4A176B
RGBrgb(74, 23, 107)
HSLhsl(276, 65%, 25%)
HSVhsv(276, 79%, 42%)
CMYKcmyk(30.8%, 78.5%, 0%, 58%)
CIE-LABlab(20.56, 39.09, -38.41)
CIE-LCHlch(20.56, 54.80, 315.50°)
OKLaboklab(33.27% 0.0857 -0.109)
OKLCHoklch(33.27% 0.139 308.2)
XYZxyz(5.7837, 3.1303, 14.2066)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A176B #386B17
analogous
#20176B #4A176B #6B1762
triadic
#4A176B #6B4A17 #176B4A
tetradic
#4A176B #6B2017 #386B17 #17626B
square
#4A176B #6B2017 #386B17 #17626B
split-complementary
#4A176B #626B17 #176B20
monochromatic
#110519 #270C39 #4A176B #6D229D #902DD0

Accessibility & contrast

On white

12.92
#4A176B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A176B
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A176B#FFFFFF#000000##FFFFFF
##4A176B1.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306D
Deuteranopia (green-blind)
#003269
Tritanopia (blue-blind)
#452B40
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4a176b;
/* rgb */ color: rgb(74, 23, 107);
/* oklch */ color: oklch(33.3% 0.139 308.2);
Tailwind
colors: {
  custom: {
    50: '#805a96',
    500: '#4a176b',
    950: '#000000',
  },
}
SCSS
$custom: #4a176b;
$custom-light: #805a96;
$custom-dark: #000000;
JSON
{
  "hex": "#4a176b",
  "rgb": {
    "r": 74,
    "g": 23,
    "b": 107
  },
  "hsl": {
    "h": 276.429,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.33268,
    "c": 0.13865,
    "h": 308.2
  },
  "luminance": 0.0313
}

Semantic roles & 50–950 ramp

primary
#4A176B
secondary
#64A13D
accent
#E84082
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4A176B

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

Preview Lab → · Contrast checker → · Palette generator →

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