#4C1868#4C1868

#4C1868 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.135 H 310.8°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#4C1868
RGBrgb(76, 24, 104)
HSLhsl(279, 63%, 25%)
HSVhsv(279, 77%, 41%)
CMYKcmyk(26.9%, 76.9%, 0%, 59.2%)
CIE-LABlab(20.79, 38.34, -36.07)
CIE-LCHlch(20.79, 52.64, 316.75°)
OKLaboklab(33.42% 0.0881 -0.1021)
OKLCHoklch(33.42% 0.135 310.8)
XYZxyz(5.8053, 3.1894, 13.4038)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1868 #346818
analogous
#241868 #4C1868 #68185C
triadic
#4C1868 #684C18 #18684C
tetradic
#4C1868 #682418 #346818 #185C68
square
#4C1868 #682418 #346818 #185C68
split-complementary
#4C1868 #5C6818 #186824
monochromatic
#120619 #280D36 #4C1868 #70239A #952FCB

Accessibility & contrast

On white

12.82
#4C1868 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#4C1868 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1868
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1868#FFFFFF#000000##FFFFFF
##4C18681.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306A
Deuteranopia (green-blind)
#093366
Tritanopia (blue-blind)
#482A3E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4c1868;
/* rgb */ color: rgb(76, 24, 104);
/* oklch */ color: oklch(33.4% 0.135 310.8);
Tailwind
colors: {
  custom: {
    50: '#815a94',
    500: '#4c1868',
    950: '#000000',
  },
}
SCSS
$custom: #4c1868;
$custom-light: #815a94;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1868",
  "rgb": {
    "r": 76,
    "g": 24,
    "b": 104
  },
  "hsl": {
    "h": 279,
    "s": 62.5,
    "l": 25.098
  },
  "oklch": {
    "l": 0.33419,
    "c": 0.13485,
    "h": 310.8
  },
  "luminance": 0.03189
}

Semantic roles & 50–950 ramp

primary
#4C1868
secondary
#5F9E3E
accent
#E6427B
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4C1868

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

Preview Lab → · Contrast checker → · Palette generator →

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