#4C1C8D#4C1C8D

#4C1C8D is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.171 H 296.1°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#4C1C8D
RGBrgb(76, 28, 141)
HSLhsl(265, 67%, 33%)
HSVhsv(265, 80%, 55%)
CMYKcmyk(46.1%, 80.1%, 0%, 44.7%)
CIE-LABlab(24.61, 45.92, -53.41)
CIE-LCHlch(24.61, 70.44, 310.69°)
OKLaboklab(37.1% 0.0751 -0.1531)
OKLCHoklch(37.1% 0.171 296.1)
XYZxyz(8.2022, 4.2899, 25.5900)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1C8D #5D8D1C
analogous
#1C248D #4C1C8D #841C8D
triadic
#4C1C8D #8D4C1C #1C8D4C
tetradic
#4C1C8D #8D1C24 #5D8D1C #1C8D84
square
#4C1C8D #8D1C24 #5D8D1C #1C8D84
split-complementary
#4C1C8D #8D841C #248D1C
monochromatic
#150827 #30125A #4C1C8D #6826C0 #8749DB

Accessibility & contrast

On white

11.30
#4C1C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4C1C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1C8D
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1C8D#FFFFFF#000000##FFFFFF
##4C1C8D1.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#00398B
Tritanopia (blue-blind)
#3A3B54
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4c1c8d;
/* rgb */ color: rgb(76, 28, 141);
/* oklch */ color: oklch(37.1% 0.171 296.1);
Tailwind
colors: {
  custom: {
    50: '#855eaf',
    500: '#4c1c8d',
    950: '#000000',
  },
}
SCSS
$custom: #4c1c8d;
$custom-light: #855eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1c8d",
  "rgb": {
    "r": 76,
    "g": 28,
    "b": 141
  },
  "hsl": {
    "h": 265.487,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37099,
    "c": 0.1705,
    "h": 296.1
  },
  "luminance": 0.0429
}

Semantic roles & 50–950 ramp

primary
#4C1C8D
secondary
#8BBD48
accent
#EA3EA1
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4C1C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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