#4C1668#4C1668

#4C1668 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.137 H 311.1°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#4C1668
RGBrgb(76, 22, 104)
HSLhsl(280, 65%, 25%)
HSVhsv(280, 79%, 41%)
CMYKcmyk(26.9%, 78.8%, 0%, 59.2%)
CIE-LABlab(20.48, 39.22, -36.56)
CIE-LCHlch(20.48, 53.62, 317.01°)
OKLaboklab(33.2% 0.0902 -0.1035)
OKLCHoklch(33.2% 0.137 311.1)
XYZxyz(5.7656, 3.1099, 13.3906)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1668 #326816
analogous
#231668 #4C1668 #68165B
triadic
#4C1668 #684C16 #16684C
tetradic
#4C1668 #682316 #326816 #165B68
square
#4C1668 #682316 #326816 #165B68
split-complementary
#4C1668 #5B6816 #166823
monochromatic
#120519 #270B35 #4C1668 #71219B #962BCD

Accessibility & contrast

On white

12.95
#4C1668 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#4C1668 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1668
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1668#FFFFFF#000000##FFFFFF
##4C16681.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6A
Deuteranopia (green-blind)
#063266
Tritanopia (blue-blind)
#48293E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4c1668;
/* rgb */ color: rgb(76, 22, 104);
/* oklch */ color: oklch(33.2% 0.137 311.1);
Tailwind
colors: {
  custom: {
    50: '#825a94',
    500: '#4c1668',
    950: '#000000',
  },
}
SCSS
$custom: #4c1668;
$custom-light: #825a94;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1668",
  "rgb": {
    "r": 76,
    "g": 22,
    "b": 104
  },
  "hsl": {
    "h": 279.512,
    "s": 65.079,
    "l": 24.706
  },
  "oklch": {
    "l": 0.33201,
    "c": 0.13733,
    "h": 311.1
  },
  "luminance": 0.0311
}

Semantic roles & 50–950 ramp

primary
#4C1668
secondary
#5D9F3B
accent
#E84079
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4C1668

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

Preview Lab → · Contrast checker → · Palette generator →

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