#4C1A7D#4C1A7D

#4C1A7D is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.4% C 0.155 H 301.7°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#4C1A7D
RGBrgb(76, 26, 125)
HSLhsl(270, 66%, 30%)
HSVhsv(270, 79%, 49%)
CMYKcmyk(39.2%, 79.2%, 0%, 51%)
CIE-LABlab(22.85, 42.64, -46.24)
CIE-LCHlch(22.85, 62.90, 312.68°)
OKLaboklab(35.42% 0.0815 -0.132)
OKLCHoklch(35.42% 0.155 301.7)
XYZxyz(7.0507, 3.7559, 19.7516)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1A7D #4B7D1A
analogous
#1B1A7D #4C1A7D #7D1A7D
triadic
#4C1A7D #7D4C1A #1A7D4C
tetradic
#4C1A7D #7D1B1A #4B7D1A #1A7D7D
square
#4C1A7D #7D1B1A #4B7D1A #1A7D7D
split-complementary
#4C1A7D #7D7D1A #1A7D1B
monochromatic
#0F0519 #2D0F4A #4C1A7D #6B25B0 #893BD6

Accessibility & contrast

On white

11.99
#4C1A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#4C1A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1A7D
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1A7D#FFFFFF#000000##FFFFFF
##4C1A7D1.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#00367B
Tritanopia (blue-blind)
#41344B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4c1a7d;
/* rgb */ color: rgb(76, 26, 125);
/* oklch */ color: oklch(35.4% 0.155 301.7);
Tailwind
colors: {
  custom: {
    50: '#835da3',
    500: '#4c1a7d',
    950: '#000000',
  },
}
SCSS
$custom: #4c1a7d;
$custom-light: #835da3;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1a7d",
  "rgb": {
    "r": 76,
    "g": 26,
    "b": 125
  },
  "hsl": {
    "h": 270.303,
    "s": 65.563,
    "l": 29.608
  },
  "oklch": {
    "l": 0.3542,
    "c": 0.15511,
    "h": 301.7
  },
  "luminance": 0.03756
}

Semantic roles & 50–950 ramp

primary
#4C1A7D
secondary
#79B142
accent
#E93F93
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C1A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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