#4C168E#4C168E

#4C168E is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.6% C 0.177 H 296.6°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#4C168E
RGBrgb(76, 22, 142)
HSLhsl(267, 73%, 32%)
HSVhsv(267, 85%, 56%)
CMYKcmyk(46.5%, 84.5%, 0%, 44.3%)
CIE-LABlab(23.88, 48.58, -55.23)
CIE-LCHlch(23.88, 73.55, 311.33°)
OKLaboklab(36.62% 0.0792 -0.1583)
OKLCHoklch(36.62% 0.177 296.6)
XYZxyz(8.1486, 4.0631, 25.9409)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C168E #588E16
analogous
#161C8E #4C168E #88168E
triadic
#4C168E #8E4C16 #168E4C
tetradic
#4C168E #8E161C #588E16 #168E88
square
#4C168E #8E161C #588E16 #168E88
split-complementary
#4C168E #8E8816 #1C8E16
monochromatic
#130624 #300E59 #4C168E #681EC3 #873DE1

Accessibility & contrast

On white

11.59
#4C168E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C168E
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C168E#FFFFFF#000000##FFFFFF
##4C168E1.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#00378C
Tritanopia (blue-blind)
#3A3A54
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4c168e;
/* rgb */ color: rgb(76, 22, 142);
/* oklch */ color: oklch(36.6% 0.177 296.6);
Tailwind
colors: {
  custom: {
    50: '#865cb0',
    500: '#4c168e',
    950: '#000000',
  },
}
SCSS
$custom: #4c168e;
$custom-light: #865cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c168e",
  "rgb": {
    "r": 76,
    "g": 22,
    "b": 142
  },
  "hsl": {
    "h": 267,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36623,
    "c": 0.17704,
    "h": 296.6
  },
  "luminance": 0.04063
}

Semantic roles & 50–950 ramp

primary
#4C168E
secondary
#86C13F
accent
#F0389D
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #4C168E

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

Preview Lab → · Contrast checker → · Palette generator →

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