#4C167E#4C167E

#4C167E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.160 H 301.9°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#4C167E
RGBrgb(76, 22, 126)
HSLhsl(271, 70%, 29%)
HSVhsv(271, 83%, 49%)
CMYKcmyk(39.7%, 82.5%, 0%, 50.6%)
CIE-LABlab(22.36, 44.56, -47.67)
CIE-LCHlch(22.36, 65.25, 313.07°)
OKLaboklab(35.11% 0.0846 -0.1362)
OKLCHoklch(35.11% 0.16 301.9)
XYZxyz(7.0324, 3.6166, 20.0622)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C167E #487E16
analogous
#18167E #4C167E #7E167C
triadic
#4C167E #7E4C16 #167E4C
tetradic
#4C167E #7E1816 #487E16 #167C7E
square
#4C167E #7E1816 #487E16 #167C7E
split-complementary
#4C167E #7C7E16 #167E18
monochromatic
#10051A #2D0D4A #4C167E #6B1FB2 #8A33DB

Accessibility & contrast

On white

12.19
#4C167E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C167E
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C167E#FFFFFF#000000##FFFFFF
##4C167E1.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#00357C
Tritanopia (blue-blind)
#41334A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4c167e;
/* rgb */ color: rgb(76, 22, 126);
/* oklch */ color: oklch(35.1% 0.160 301.9);
Tailwind
colors: {
  custom: {
    50: '#845ba4',
    500: '#4c167e',
    950: '#000000',
  },
}
SCSS
$custom: #4c167e;
$custom-light: #845ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#4c167e",
  "rgb": {
    "r": 76,
    "g": 22,
    "b": 126
  },
  "hsl": {
    "h": 271.154,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35108,
    "c": 0.16032,
    "h": 301.9
  },
  "luminance": 0.03617
}

Semantic roles & 50–950 ramp

primary
#4C167E
secondary
#76B33D
accent
#ED3B90
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C167E

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

Preview Lab → · Contrast checker → · Palette generator →

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