#4C187B#4C187B

#4C187B is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.155 H 302.7°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#4C187B
RGBrgb(76, 24, 123)
HSLhsl(272, 67%, 29%)
HSVhsv(272, 80%, 48%)
CMYKcmyk(38.2%, 80.5%, 0%, 51.8%)
CIE-LABlab(22.37, 42.99, -45.74)
CIE-LCHlch(22.37, 62.78, 313.23°)
OKLaboklab(35.03% 0.0838 -0.1305)
OKLCHoklch(35.03% 0.155 302.7)
XYZxyz(6.8814, 3.6198, 19.0712)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C187B #477B18
analogous
#1B187B #4C187B #7B1879
triadic
#4C187B #7B4C18 #187B4C
tetradic
#4C187B #7B1B18 #477B18 #18797B
square
#4C187B #7B1B18 #477B18 #18797B
split-complementary
#4C187B #797B18 #187B1B
monochromatic
#10051A #2C0E48 #4C187B #6C22AE #8B36D8

Accessibility & contrast

On white

12.18
#4C187B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C187B
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C187B#FFFFFF#000000##FFFFFF
##4C187B1.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357E
Deuteranopia (green-blind)
#003579
Tritanopia (blue-blind)
#423249
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4c187b;
/* rgb */ color: rgb(76, 24, 123);
/* oklch */ color: oklch(35.0% 0.155 302.7);
Tailwind
colors: {
  custom: {
    50: '#835ca2',
    500: '#4c187b',
    950: '#000000',
  },
}
SCSS
$custom: #4c187b;
$custom-light: #835ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#4c187b",
  "rgb": {
    "r": 76,
    "g": 24,
    "b": 123
  },
  "hsl": {
    "h": 271.515,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35032,
    "c": 0.15512,
    "h": 302.7
  },
  "luminance": 0.0362
}

Semantic roles & 50–950 ramp

primary
#4C187B
secondary
#75B03F
accent
#EA3E90
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C187B

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

Preview Lab → · Contrast checker → · Palette generator →

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