#4C1768#4C1768

#4C1768 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.136 H 310.9°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#4C1768
RGBrgb(76, 23, 104)
HSLhsl(279, 64%, 25%)
HSVhsv(279, 78%, 41%)
CMYKcmyk(26.9%, 77.9%, 0%, 59.2%)
CIE-LABlab(20.63, 38.79, -36.32)
CIE-LCHlch(20.63, 53.14, 316.88°)
OKLaboklab(33.31% 0.0892 -0.1028)
OKLCHoklch(33.31% 0.136 310.9)
XYZxyz(5.7851, 3.1489, 13.3971)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1768 #336817
analogous
#231768 #4C1768 #68175C
triadic
#4C1768 #684C17 #17684C
tetradic
#4C1768 #682317 #336817 #175C68
square
#4C1768 #682317 #336817 #175C68
split-complementary
#4C1768 #5C6817 #176823
monochromatic
#120619 #270C36 #4C1768 #71229A #952DCC

Accessibility & contrast

On white

12.89
#4C1768 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#4C1768 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1768
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1768#FFFFFF#000000##FFFFFF
##4C17681.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6A
Deuteranopia (green-blind)
#083366
Tritanopia (blue-blind)
#482A3E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4c1768;
/* rgb */ color: rgb(76, 23, 104);
/* oklch */ color: oklch(33.3% 0.136 310.9);
Tailwind
colors: {
  custom: {
    50: '#815a94',
    500: '#4c1768',
    950: '#000000',
  },
}
SCSS
$custom: #4c1768;
$custom-light: #815a94;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1768",
  "rgb": {
    "r": 76,
    "g": 23,
    "b": 104
  },
  "hsl": {
    "h": 279.259,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.33308,
    "c": 0.13611,
    "h": 310.9
  },
  "luminance": 0.03149
}

Semantic roles & 50–950 ramp

primary
#4C1768
secondary
#5E9E3D
accent
#E7417A
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4C1768

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

Preview Lab → · Contrast checker → · Palette generator →

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