#4C167D#4C167D

#4C167D is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.159 H 302.2°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#4C167D
RGBrgb(76, 22, 125)
HSLhsl(271, 70%, 29%)
HSVhsv(271, 82%, 49%)
CMYKcmyk(39.2%, 82.4%, 0%, 51%)
CIE-LABlab(22.27, 44.31, -47.18)
CIE-LCHlch(22.27, 64.72, 313.20°)
OKLaboklab(35.02% 0.0849 -0.1347)
OKLCHoklch(35.02% 0.159 302.2)
XYZxyz(6.9682, 3.5910, 19.7241)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C167D #477D16
analogous
#18167D #4C167D #7D167B
triadic
#4C167D #7D4C16 #167D4C
tetradic
#4C167D #7D1816 #477D16 #167B7D
square
#4C167D #7D1816 #477D16 #167B7D
split-complementary
#4C167D #7B7D16 #167D18
monochromatic
#10051A #2C0D49 #4C167D #6C1FB1 #8B32DB

Accessibility & contrast

On white

12.22
#4C167D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4C167D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C167D
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C167D#FFFFFF#000000##FFFFFF
##4C167D1.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#00357B
Tritanopia (blue-blind)
#41324A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4c167d;
/* rgb */ color: rgb(76, 22, 125);
/* oklch */ color: oklch(35.0% 0.159 302.2);
Tailwind
colors: {
  custom: {
    50: '#845ba3',
    500: '#4c167d',
    950: '#000000',
  },
}
SCSS
$custom: #4c167d;
$custom-light: #845ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#4c167d",
  "rgb": {
    "r": 76,
    "g": 22,
    "b": 125
  },
  "hsl": {
    "h": 271.456,
    "s": 70.068,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35016,
    "c": 0.15927,
    "h": 302.2
  },
  "luminance": 0.03591
}

Semantic roles & 50–950 ramp

primary
#4C167D
secondary
#75B23D
accent
#ED3B90
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C167D

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

Preview Lab → · Contrast checker → · Palette generator →

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