#4C1B76#4C1B76

#4C1B76 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.146 H 304.2°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#4C1B76
RGBrgb(76, 27, 118)
HSLhsl(272, 63%, 28%)
HSVhsv(272, 77%, 46%)
CMYKcmyk(35.6%, 77.1%, 0%, 53.7%)
CIE-LABlab(22.40, 40.42, -42.50)
CIE-LCHlch(22.40, 58.65, 313.56°)
OKLaboklab(34.92% 0.0822 -0.121)
OKLCHoklch(34.92% 0.146 304.2)
XYZxyz(6.6417, 3.6284, 17.4865)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1B76 #45761B
analogous
#1E1B76 #4C1B76 #761B72
triadic
#4C1B76 #764C1B #1B764C
tetradic
#4C1B76 #761E1B #45761B #1B7276
square
#4C1B76 #761E1B #45761B #1B7276
split-complementary
#4C1B76 #72761B #1B761E
monochromatic
#100619 #2C1044 #4C1B76 #6C26A8 #8C3AD2

Accessibility & contrast

On white

12.17
#4C1B76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4C1B76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1B76
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1B76#FFFFFF#000000##FFFFFF
##4C1B761.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003479
Deuteranopia (green-blind)
#003574
Tritanopia (blue-blind)
#443147
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4c1b76;
/* rgb */ color: rgb(76, 27, 118);
/* oklch */ color: oklch(34.9% 0.146 304.2);
Tailwind
colors: {
  custom: {
    50: '#825d9e',
    500: '#4c1b76',
    950: '#000000',
  },
}
SCSS
$custom: #4c1b76;
$custom-light: #825d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1b76",
  "rgb": {
    "r": 76,
    "g": 27,
    "b": 118
  },
  "hsl": {
    "h": 272.308,
    "s": 62.759,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34919,
    "c": 0.14631,
    "h": 304.2
  },
  "luminance": 0.03628
}

Semantic roles & 50–950 ramp

primary
#4C1B76
secondary
#72AA42
accent
#E6428E
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C1B76

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

Preview Lab → · Contrast checker → · Palette generator →

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