#4C1679#4C1679

#4C1679 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.155 H 303.7°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#4C1679
RGBrgb(76, 22, 121)
HSLhsl(273, 69%, 28%)
HSVhsv(273, 82%, 47%)
CMYKcmyk(37.2%, 81.8%, 0%, 52.5%)
CIE-LABlab(21.91, 43.32, -45.22)
CIE-LCHlch(21.91, 62.62, 313.77°)
OKLaboklab(34.66% 0.0861 -0.129)
OKLCHoklch(34.66% 0.155 303.7)
XYZxyz(6.7178, 3.4908, 18.4053)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1679 #437916
analogous
#1A1679 #4C1679 #791674
triadic
#4C1679 #794C16 #16794C
tetradic
#4C1679 #791A16 #437916 #167479
square
#4C1679 #791A16 #437916 #167479
split-complementary
#4C1679 #747916 #16791A
monochromatic
#10051A #2B0D45 #4C1679 #6D1FAD #8C30D9

Accessibility & contrast

On white

12.37
#4C1679 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4C1679 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1679
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1679#FFFFFF#000000##FFFFFF
##4C16791.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337C
Deuteranopia (green-blind)
#003477
Tritanopia (blue-blind)
#433048
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4c1679;
/* rgb */ color: rgb(76, 22, 121);
/* oklch */ color: oklch(34.7% 0.155 303.7);
Tailwind
colors: {
  custom: {
    50: '#835aa1',
    500: '#4c1679',
    950: '#000000',
  },
}
SCSS
$custom: #4c1679;
$custom-light: #835aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1679",
  "rgb": {
    "r": 76,
    "g": 22,
    "b": 121
  },
  "hsl": {
    "h": 272.727,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.34655,
    "c": 0.15509,
    "h": 303.7
  },
  "luminance": 0.03491
}

Semantic roles & 50–950 ramp

primary
#4C1679
secondary
#70AE3D
accent
#EC3C8C
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C1679

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

Preview Lab → · Contrast checker → · Palette generator →

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