#4C168F#4C168F

#4C168F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.7% C 0.178 H 296.3°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#4C168F
RGBrgb(76, 22, 143)
HSLhsl(267, 73%, 32%)
HSVhsv(267, 85%, 56%)
CMYKcmyk(46.9%, 84.6%, 0%, 43.9%)
CIE-LABlab(23.98, 48.83, -55.69)
CIE-LCHlch(23.98, 74.07, 311.25°)
OKLaboklab(36.72% 0.0788 -0.1597)
OKLCHoklch(36.72% 0.178 296.3)
XYZxyz(8.2240, 4.0933, 26.3381)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C168F #598F16
analogous
#161D8F #4C168F #89168F
triadic
#4C168F #8F4C16 #168F4C
tetradic
#4C168F #8F161D #598F16 #168F89
square
#4C168F #8F161D #598F16 #168F89
split-complementary
#4C168F #8F8916 #1D8F16
monochromatic
#140625 #300E5A #4C168F #681EC4 #873EE1

Accessibility & contrast

On white

11.55
#4C168F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4C168F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C168F
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C168F#FFFFFF#000000##FFFFFF
##4C168F1.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00378D
Tritanopia (blue-blind)
#393A54
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4c168f;
/* rgb */ color: rgb(76, 22, 143);
/* oklch */ color: oklch(36.7% 0.178 296.3);
Tailwind
colors: {
  custom: {
    50: '#865cb1',
    500: '#4c168f',
    950: '#000000',
  },
}
SCSS
$custom: #4c168f;
$custom-light: #865cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c168f",
  "rgb": {
    "r": 76,
    "g": 22,
    "b": 143
  },
  "hsl": {
    "h": 266.777,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.36721,
    "c": 0.17808,
    "h": 296.3
  },
  "luminance": 0.04093
}

Semantic roles & 50–950 ramp

primary
#4C168F
secondary
#87C13F
accent
#F0389E
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #4C168F

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

Preview Lab → · Contrast checker → · Palette generator →

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