#4C167B#4C167B

#4C167B is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.157 H 303.0°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#4C167B
RGBrgb(76, 22, 123)
HSLhsl(272, 70%, 28%)
HSVhsv(272, 82%, 48%)
CMYKcmyk(38.2%, 82.1%, 0%, 51.8%)
CIE-LABlab(22.09, 43.81, -46.20)
CIE-LCHlch(22.09, 63.67, 313.48°)
OKLaboklab(34.84% 0.0856 -0.1319)
OKLCHoklch(34.84% 0.157 303)
XYZxyz(6.8417, 3.5404, 19.0580)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C167B #457B16
analogous
#19167B #4C167B #7B1677
triadic
#4C167B #7B4C16 #167B4C
tetradic
#4C167B #7B1916 #457B16 #16777B
square
#4C167B #7B1916 #457B16 #16777B
split-complementary
#4C167B #777B16 #167B19
monochromatic
#10051A #2C0D47 #4C167B #6C1FAF #8C31DA

Accessibility & contrast

On white

12.30
#4C167B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C167B
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C167B#FFFFFF#000000##FFFFFF
##4C167B1.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#003579
Tritanopia (blue-blind)
#423149
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4c167b;
/* rgb */ color: rgb(76, 22, 123);
/* oklch */ color: oklch(34.8% 0.157 303.0);
Tailwind
colors: {
  custom: {
    50: '#835ba2',
    500: '#4c167b',
    950: '#000000',
  },
}
SCSS
$custom: #4c167b;
$custom-light: #835ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#4c167b",
  "rgb": {
    "r": 76,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 272.079,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34835,
    "c": 0.15718,
    "h": 303
  },
  "luminance": 0.0354
}

Semantic roles & 50–950 ramp

primary
#4C167B
secondary
#72B03D
accent
#EC3B8E
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C167B

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

Preview Lab → · Contrast checker → · Palette generator →

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