#4C1C7D#4C1C7D

#4C1C7D is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.153 H 301.4°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#4C1C7D
RGBrgb(76, 28, 125)
HSLhsl(270, 63%, 30%)
HSVhsv(270, 78%, 49%)
CMYKcmyk(39.2%, 77.6%, 0%, 51%)
CIE-LABlab(23.16, 41.74, -45.73)
CIE-LCHlch(23.16, 61.92, 312.39°)
OKLaboklab(35.64% 0.0796 -0.1305)
OKLCHoklch(35.64% 0.153 301.4)
XYZxyz(7.0965, 3.8476, 19.7669)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1C7D #4D7D1C
analogous
#1C1C7D #4C1C7D #7D1C7D
triadic
#4C1C7D #7D4C1C #1C7D4C
tetradic
#4C1C7D #7D1C1C #4D7D1C #1C7D7D
square
#4C1C7D #7D1C1C #4D7D1C #1C7D7D
split-complementary
#4C1C7D #7D7D1C #1C7D1C
monochromatic
#0F0619 #2E114B #4C1C7D #6A27AF #893FD4

Accessibility & contrast

On white

11.87
#4C1C7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#4C1C7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1C7D
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1C7D#FFFFFF#000000##FFFFFF
##4C1C7D1.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#00377B
Tritanopia (blue-blind)
#41354B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4c1c7d;
/* rgb */ color: rgb(76, 28, 125);
/* oklch */ color: oklch(35.6% 0.153 301.4);
Tailwind
colors: {
  custom: {
    50: '#835ea3',
    500: '#4c1c7d',
    950: '#000000',
  },
}
SCSS
$custom: #4c1c7d;
$custom-light: #835ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1c7d",
  "rgb": {
    "r": 76,
    "g": 28,
    "b": 125
  },
  "hsl": {
    "h": 269.691,
    "s": 63.399,
    "l": 30
  },
  "oklch": {
    "l": 0.3564,
    "c": 0.15286,
    "h": 301.4
  },
  "luminance": 0.03848
}

Semantic roles & 50–950 ramp

primary
#4C1C7D
secondary
#7BB144
accent
#E64195
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4C1C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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