#4C168D#4C168D

#4C168D is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.5% C 0.176 H 296.9°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#4C168D
RGBrgb(76, 22, 141)
HSLhsl(267, 73%, 32%)
HSVhsv(267, 84%, 55%)
CMYKcmyk(46.1%, 84.4%, 0%, 44.7%)
CIE-LABlab(23.78, 48.33, -54.77)
CIE-LCHlch(23.78, 73.04, 311.42°)
OKLaboklab(36.53% 0.0796 -0.157)
OKLCHoklch(36.53% 0.176 296.9)
XYZxyz(8.0738, 4.0332, 25.5472)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C168D #578D16
analogous
#161C8D #4C168D #88168D
triadic
#4C168D #8D4C16 #168D4C
tetradic
#4C168D #8D161C #578D16 #168D88
square
#4C168D #8D161C #578D16 #168D88
split-complementary
#4C168D #8D8816 #1C8D16
monochromatic
#130523 #2F0E58 #4C168D #691EC2 #873DE1

Accessibility & contrast

On white

11.62
#4C168D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4C168D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C168D
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C168D#FFFFFF#000000##FFFFFF
##4C168D1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#00378B
Tritanopia (blue-blind)
#3A3953
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4c168d;
/* rgb */ color: rgb(76, 22, 141);
/* oklch */ color: oklch(36.5% 0.176 296.9);
Tailwind
colors: {
  custom: {
    50: '#855caf',
    500: '#4c168d',
    950: '#000000',
  },
}
SCSS
$custom: #4c168d;
$custom-light: #855caf;
$custom-dark: #000000;
JSON
{
  "hex": "#4c168d",
  "rgb": {
    "r": 76,
    "g": 22,
    "b": 141
  },
  "hsl": {
    "h": 267.227,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.36525,
    "c": 0.17599,
    "h": 296.9
  },
  "luminance": 0.04033
}

Semantic roles & 50–950 ramp

primary
#4C168D
secondary
#85C13E
accent
#F0389C
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #4C168D

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

Preview Lab → · Contrast checker → · Palette generator →

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