#4C1B79#4C1B79

#4C1B79 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.150 H 303.0°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#4C1B79
RGBrgb(76, 27, 121)
HSLhsl(271, 64%, 29%)
HSVhsv(271, 78%, 47%)
CMYKcmyk(37.2%, 77.7%, 0%, 52.5%)
CIE-LABlab(22.66, 41.18, -44.00)
CIE-LCHlch(22.66, 60.27, 313.10°)
OKLaboklab(35.18% 0.0815 -0.1254)
OKLCHoklch(35.18% 0.15 303)
XYZxyz(6.8228, 3.7008, 18.4403)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1B79 #48791B
analogous
#1D1B79 #4C1B79 #791B77
triadic
#4C1B79 #794C1B #1B794C
tetradic
#4C1B79 #791D1B #48791B #1B7779
square
#4C1B79 #791D1B #48791B #1B7779
split-complementary
#4C1B79 #77791B #1B791D
monochromatic
#100619 #2D1047 #4C1B79 #6B26AB #8A3BD3

Accessibility & contrast

On white

12.07
#4C1B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4C1B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1B79
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1B79#FFFFFF#000000##FFFFFF
##4C1B791.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357C
Deuteranopia (green-blind)
#003677
Tritanopia (blue-blind)
#433349
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4c1b79;
/* rgb */ color: rgb(76, 27, 121);
/* oklch */ color: oklch(35.2% 0.150 303.0);
Tailwind
colors: {
  custom: {
    50: '#835da0',
    500: '#4c1b79',
    950: '#000000',
  },
}
SCSS
$custom: #4c1b79;
$custom-light: #835da0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1b79",
  "rgb": {
    "r": 76,
    "g": 27,
    "b": 121
  },
  "hsl": {
    "h": 271.277,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35178,
    "c": 0.14961,
    "h": 303
  },
  "luminance": 0.03701
}

Semantic roles & 50–950 ramp

primary
#4C1B79
secondary
#76AD43
accent
#E74190
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C1B79

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

Preview Lab → · Contrast checker → · Palette generator →

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