#4C168B#4C168B

#4C168B is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.174 H 297.5°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#4C168B
RGBrgb(76, 22, 139)
HSLhsl(268, 73%, 32%)
HSVhsv(268, 84%, 55%)
CMYKcmyk(45.3%, 84.2%, 0%, 45.5%)
CIE-LABlab(23.59, 47.82, -53.84)
CIE-LCHlch(23.59, 72.01, 311.61°)
OKLaboklab(36.33% 0.0803 -0.1543)
OKLCHoklch(36.33% 0.174 297.5)
XYZxyz(7.9264, 3.9742, 24.7706)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C168B #558B16
analogous
#161B8B #4C168B #87168B
triadic
#4C168B #8B4C16 #168B4C
tetradic
#4C168B #8B161B #558B16 #168B87
square
#4C168B #8B161B #558B16 #168B87
split-complementary
#4C168B #8B8716 #1B8B16
monochromatic
#120521 #2F0E56 #4C168B #691EC0 #873BE0

Accessibility & contrast

On white

11.70
#4C168B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4C168B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C168B
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C168B#FFFFFF#000000##FFFFFF
##4C168B1.0011.701.7911.70
#FFFFFF11.701.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#003789
Tritanopia (blue-blind)
#3B3852
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4c168b;
/* rgb */ color: rgb(76, 22, 139);
/* oklch */ color: oklch(36.3% 0.174 297.5);
Tailwind
colors: {
  custom: {
    50: '#855cae',
    500: '#4c168b',
    950: '#000000',
  },
}
SCSS
$custom: #4c168b;
$custom-light: #855cae;
$custom-dark: #000000;
JSON
{
  "hex": "#4c168b",
  "rgb": {
    "r": 76,
    "g": 22,
    "b": 139
  },
  "hsl": {
    "h": 267.692,
    "s": 72.671,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36332,
    "c": 0.17391,
    "h": 297.5
  },
  "luminance": 0.03974
}

Semantic roles & 50–950 ramp

primary
#4C168B
secondary
#83BF3E
accent
#EF389B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4C168B

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

Preview Lab → · Contrast checker → · Palette generator →

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