#4C187C#4C187C

#4C187C is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.156 H 302.3°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#4C187C
RGBrgb(76, 24, 124)
HSLhsl(271, 68%, 29%)
HSVhsv(271, 81%, 49%)
CMYKcmyk(38.7%, 80.6%, 0%, 51.4%)
CIE-LABlab(22.46, 43.24, -46.23)
CIE-LCHlch(22.46, 63.31, 313.09°)
OKLaboklab(35.12% 0.0835 -0.132)
OKLCHoklch(35.12% 0.156 302.3)
XYZxyz(6.9443, 3.6450, 19.4026)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C187C #487C18
analogous
#1A187C #4C187C #7C187A
triadic
#4C187C #7C4C18 #187C4C
tetradic
#4C187C #7C1A18 #487C18 #187A7C
square
#4C187C #7C1A18 #487C18 #187A7C
split-complementary
#4C187C #7A7C18 #187C1A
monochromatic
#10051A #2D0E49 #4C187C #6B22AF #8A36D8

Accessibility & contrast

On white

12.15
#4C187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C187C
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C187C#FFFFFF#000000##FFFFFF
##4C187C1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#00357A
Tritanopia (blue-blind)
#42334A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4c187c;
/* rgb */ color: rgb(76, 24, 124);
/* oklch */ color: oklch(35.1% 0.156 302.3);
Tailwind
colors: {
  custom: {
    50: '#835ca3',
    500: '#4c187c',
    950: '#000000',
  },
}
SCSS
$custom: #4c187c;
$custom-light: #835ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#4c187c",
  "rgb": {
    "r": 76,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 271.2,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35122,
    "c": 0.15618,
    "h": 302.3
  },
  "luminance": 0.03645
}

Semantic roles & 50–950 ramp

primary
#4C187C
secondary
#76B13F
accent
#EA3D90
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C187C

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

Preview Lab → · Contrast checker → · Palette generator →

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