#4C167F#4C167F

#4C167F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.2% C 0.161 H 301.5°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#4C167F
RGBrgb(76, 22, 127)
HSLhsl(271, 70%, 29%)
HSVhsv(271, 83%, 50%)
CMYKcmyk(40.2%, 82.7%, 0%, 50.2%)
CIE-LABlab(22.45, 44.80, -48.15)
CIE-LCHlch(22.45, 65.77, 312.94°)
OKLaboklab(35.2% 0.0843 -0.1376)
OKLCHoklch(35.2% 0.161 301.5)
XYZxyz(7.0972, 3.6426, 20.4037)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C167F #497F16
analogous
#17167F #4C167F #7F167E
triadic
#4C167F #7F4C16 #167F4C
tetradic
#4C167F #7F1716 #497F16 #167E7F
square
#4C167F #7F1716 #497F16 #167E7F
split-complementary
#4C167F #7E7F16 #167F17
monochromatic
#10051A #2D0D4B #4C167F #6B1FB3 #8A34DC

Accessibility & contrast

On white

12.15
#4C167F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4C167F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C167F
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C167F#FFFFFF#000000##FFFFFF
##4C167F1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00357D
Tritanopia (blue-blind)
#41334B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4c167f;
/* rgb */ color: rgb(76, 22, 127);
/* oklch */ color: oklch(35.2% 0.161 301.5);
Tailwind
colors: {
  custom: {
    50: '#845ba5',
    500: '#4c167f',
    950: '#000000',
  },
}
SCSS
$custom: #4c167f;
$custom-light: #845ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#4c167f",
  "rgb": {
    "r": 76,
    "g": 22,
    "b": 127
  },
  "hsl": {
    "h": 270.857,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.35199,
    "c": 0.16136,
    "h": 301.5
  },
  "luminance": 0.03643
}

Semantic roles & 50–950 ramp

primary
#4C167F
secondary
#77B43D
accent
#ED3B91
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C167F

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

Preview Lab → · Contrast checker → · Palette generator →

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