#4C1D8B#4C1D8B

#4C1D8B is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.167 H 296.6°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#4C1D8B
RGBrgb(76, 29, 139)
HSLhsl(266, 65%, 33%)
HSVhsv(266, 79%, 55%)
CMYKcmyk(45.3%, 79.1%, 0%, 45.5%)
CIE-LABlab(24.57, 44.95, -52.22)
CIE-LCHlch(24.57, 68.91, 310.72°)
OKLaboklab(37.02% 0.0749 -0.1496)
OKLCHoklch(37.02% 0.167 296.6)
XYZxyz(8.0788, 4.2791, 24.8214)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1D8B #5C8B1D
analogous
#1D258B #4C1D8B #831D8B
triadic
#4C1D8B #8B4C1D #1D8B4C
tetradic
#4C1D8B #8B1D25 #5C8B1D #1D8B83
square
#4C1D8B #8B1D25 #5C8B1D #1D8B83
split-complementary
#4C1D8B #8B831D #258B1D
monochromatic
#150826 #301258 #4C1D8B #6828BE #8749D9

Accessibility & contrast

On white

11.32
#4C1D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1D8B
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1D8B#FFFFFF#000000##FFFFFF
##4C1D8B1.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003989
Tritanopia (blue-blind)
#3B3B53
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4c1d8b;
/* rgb */ color: rgb(76, 29, 139);
/* oklch */ color: oklch(37.0% 0.167 296.6);
Tailwind
colors: {
  custom: {
    50: '#855fae',
    500: '#4c1d8b',
    950: '#000000',
  },
}
SCSS
$custom: #4c1d8b;
$custom-light: #855fae;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1d8b",
  "rgb": {
    "r": 76,
    "g": 29,
    "b": 139
  },
  "hsl": {
    "h": 265.636,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37018,
    "c": 0.16728,
    "h": 296.6
  },
  "luminance": 0.04279
}

Semantic roles & 50–950 ramp

primary
#4C1D8B
secondary
#8ABB49
accent
#E83FA0
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4C1D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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