#4C1867#4C1867

#4C1867 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.3% C 0.134 H 311.3°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#4C1867
RGBrgb(76, 24, 103)
HSLhsl(279, 62%, 25%)
HSVhsv(279, 77%, 40%)
CMYKcmyk(26.2%, 76.7%, 0%, 59.6%)
CIE-LABlab(20.71, 38.11, -35.54)
CIE-LCHlch(20.71, 52.11, 317.00°)
OKLaboklab(33.34% 0.0883 -0.1005)
OKLCHoklch(33.34% 0.134 311.3)
XYZxyz(5.7548, 3.1692, 13.1379)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1867 #336718
analogous
#251867 #4C1867 #67185A
triadic
#4C1867 #674C18 #18674C
tetradic
#4C1867 #672518 #336718 #185A67
square
#4C1867 #672518 #336718 #185A67
split-complementary
#4C1867 #5A6718 #186725
monochromatic
#120619 #270C35 #4C1867 #712499 #952FCA

Accessibility & contrast

On white

12.85
#4C1867 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1867
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1867#FFFFFF#000000##FFFFFF
##4C18671.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F69
Deuteranopia (green-blind)
#0B3365
Tritanopia (blue-blind)
#492A3E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4c1867;
/* rgb */ color: rgb(76, 24, 103);
/* oklch */ color: oklch(33.3% 0.134 311.3);
Tailwind
colors: {
  custom: {
    50: '#815a93',
    500: '#4c1867',
    950: '#000000',
  },
}
SCSS
$custom: #4c1867;
$custom-light: #815a93;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1867",
  "rgb": {
    "r": 76,
    "g": 24,
    "b": 103
  },
  "hsl": {
    "h": 279.494,
    "s": 62.205,
    "l": 24.902
  },
  "oklch": {
    "l": 0.33339,
    "c": 0.13379,
    "h": 311.3
  },
  "luminance": 0.03169
}

Semantic roles & 50–950 ramp

primary
#4C1867
secondary
#5E9D3E
accent
#E5437A
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4C1867

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

Preview Lab → · Contrast checker → · Palette generator →

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