#4C187A#4C187A

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

Color values

HEX#4C187A
RGBrgb(76, 24, 122)
HSLhsl(272, 67%, 29%)
HSVhsv(272, 80%, 48%)
CMYKcmyk(37.7%, 80.3%, 0%, 52.2%)
CIE-LABlab(22.28, 42.74, -45.25)
CIE-LCHlch(22.28, 62.25, 313.37°)
OKLaboklab(34.94% 0.0841 -0.1291)
OKLCHoklch(34.94% 0.154 303.1)
XYZxyz(6.8191, 3.5949, 18.7432)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C187A #467A18
analogous
#1B187A #4C187A #7A1877
triadic
#4C187A #7A4C18 #187A4C
tetradic
#4C187A #7A1B18 #467A18 #18777A
square
#4C187A #7A1B18 #467A18 #18777A
split-complementary
#4C187A #777A18 #187A1B
monochromatic
#10051A #2C0E47 #4C187A #6C22AD #8B35D7

Accessibility & contrast

On white

12.22
#4C187A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4C187A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C187A
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C187A#FFFFFF#000000##FFFFFF
##4C187A1.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#003578
Tritanopia (blue-blind)
#423249
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4c187a;
/* rgb */ color: rgb(76, 24, 122);
/* oklch */ color: oklch(34.9% 0.154 303.1);
Tailwind
colors: {
  custom: {
    50: '#835ba1',
    500: '#4c187a',
    950: '#000000',
  },
}
SCSS
$custom: #4c187a;
$custom-light: #835ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c187a",
  "rgb": {
    "r": 76,
    "g": 24,
    "b": 122
  },
  "hsl": {
    "h": 271.837,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.34943,
    "c": 0.15405,
    "h": 303.1
  },
  "luminance": 0.03595
}

Semantic roles & 50–950 ramp

primary
#4C187A
secondary
#73AF3F
accent
#EA3E8F
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C187A

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

Preview Lab → · Contrast checker → · Palette generator →

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