#4C187D#4C187D

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

Color values

HEX#4C187D
RGBrgb(76, 24, 125)
HSLhsl(271, 68%, 29%)
HSVhsv(271, 81%, 49%)
CMYKcmyk(39.2%, 80.8%, 0%, 51%)
CIE-LABlab(22.55, 43.50, -46.72)
CIE-LCHlch(22.55, 63.84, 312.95°)
OKLaboklab(35.21% 0.0833 -0.1334)
OKLCHoklch(35.21% 0.157 302)
XYZxyz(7.0079, 3.6704, 19.7373)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C187D #497D18
analogous
#1A187D #4C187D #7D187C
triadic
#4C187D #7D4C18 #187D4C
tetradic
#4C187D #7D1A18 #497D18 #187C7D
square
#4C187D #7D1A18 #497D18 #187C7D
split-complementary
#4C187D #7C7D18 #187D1A
monochromatic
#10051A #2D0E4A #4C187D #6B22B0 #8A37D9

Accessibility & contrast

On white

12.11
#4C187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4C187D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C187D
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C187D#FFFFFF#000000##FFFFFF
##4C187D1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#00357B
Tritanopia (blue-blind)
#41334A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4c187d;
/* rgb */ color: rgb(76, 24, 125);
/* oklch */ color: oklch(35.2% 0.157 302.0);
Tailwind
colors: {
  custom: {
    50: '#835ca3',
    500: '#4c187d',
    950: '#000000',
  },
}
SCSS
$custom: #4c187d;
$custom-light: #835ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#4c187d",
  "rgb": {
    "r": 76,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 270.891,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.35212,
    "c": 0.15725,
    "h": 302
  },
  "luminance": 0.0367
}

Semantic roles & 50–950 ramp

primary
#4C187D
secondary
#77B23F
accent
#EB3D91
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C187D

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

Preview Lab → · Contrast checker → · Palette generator →

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