#4C167C#4C167C

#4C167C is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.158 H 302.6°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#4C167C
RGBrgb(76, 22, 124)
HSLhsl(272, 70%, 29%)
HSVhsv(272, 82%, 49%)
CMYKcmyk(38.7%, 82.3%, 0%, 51.4%)
CIE-LABlab(22.18, 44.06, -46.69)
CIE-LCHlch(22.18, 64.20, 313.34°)
OKLaboklab(34.92% 0.0853 -0.1333)
OKLCHoklch(34.92% 0.158 302.6)
XYZxyz(6.9046, 3.5655, 19.3893)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C167C #467C16
analogous
#19167C #4C167C #7C1679
triadic
#4C167C #7C4C16 #167C4C
tetradic
#4C167C #7C1916 #467C16 #16797C
square
#4C167C #7C1916 #467C16 #16797C
split-complementary
#4C167C #797C16 #167C19
monochromatic
#10051A #2C0D48 #4C167C #6C1FB0 #8B32DB

Accessibility & contrast

On white

12.26
#4C167C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4C167C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C167C
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C167C#FFFFFF#000000##FFFFFF
##4C167C1.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#00357A
Tritanopia (blue-blind)
#423249
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4c167c;
/* rgb */ color: rgb(76, 22, 124);
/* oklch */ color: oklch(34.9% 0.158 302.6);
Tailwind
colors: {
  custom: {
    50: '#835ba3',
    500: '#4c167c',
    950: '#000000',
  },
}
SCSS
$custom: #4c167c;
$custom-light: #835ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#4c167c",
  "rgb": {
    "r": 76,
    "g": 22,
    "b": 124
  },
  "hsl": {
    "h": 271.765,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.34925,
    "c": 0.15823,
    "h": 302.6
  },
  "luminance": 0.03566
}

Semantic roles & 50–950 ramp

primary
#4C167C
secondary
#73B13D
accent
#ED3B8F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C167C

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

Preview Lab → · Contrast checker → · Palette generator →

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