#4C167A#4C167A

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

Color values

HEX#4C167A
RGBrgb(76, 22, 122)
HSLhsl(272, 69%, 28%)
HSVhsv(272, 82%, 48%)
CMYKcmyk(37.7%, 82%, 0%, 52.2%)
CIE-LABlab(22.00, 43.56, -45.71)
CIE-LCHlch(22.00, 63.15, 313.62°)
OKLaboklab(34.74% 0.0858 -0.1304)
OKLCHoklch(34.74% 0.156 303.4)
XYZxyz(6.7794, 3.5155, 18.7300)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C167A #447A16
analogous
#1A167A #4C167A #7A1676
triadic
#4C167A #7A4C16 #167A4C
tetradic
#4C167A #7A1A16 #447A16 #16767A
square
#4C167A #7A1A16 #447A16 #16767A
split-complementary
#4C167A #767A16 #167A1A
monochromatic
#10051A #2C0D46 #4C167A #6C1FAE #8C31DA

Accessibility & contrast

On white

12.33
#4C167A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C167A
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C167A#FFFFFF#000000##FFFFFF
##4C167A1.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#003478
Tritanopia (blue-blind)
#433148
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4c167a;
/* rgb */ color: rgb(76, 22, 122);
/* oklch */ color: oklch(34.7% 0.156 303.4);
Tailwind
colors: {
  custom: {
    50: '#835ba1',
    500: '#4c167a',
    950: '#000000',
  },
}
SCSS
$custom: #4c167a;
$custom-light: #835ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c167a",
  "rgb": {
    "r": 76,
    "g": 22,
    "b": 122
  },
  "hsl": {
    "h": 272.4,
    "s": 69.444,
    "l": 28.235
  },
  "oklch": {
    "l": 0.34744,
    "c": 0.15613,
    "h": 303.4
  },
  "luminance": 0.03515
}

Semantic roles & 50–950 ramp

primary
#4C167A
secondary
#71AF3D
accent
#EC3C8D
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C167A

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

Preview Lab → · Contrast checker → · Palette generator →

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