#4C2387#4C2387

#4C2387 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.4% C 0.156 H 296.8°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#4C2387
RGBrgb(76, 35, 135)
HSLhsl(265, 59%, 33%)
HSVhsv(265, 74%, 53%)
CMYKcmyk(43.7%, 74.1%, 0%, 47.1%)
CIE-LABlab(25.22, 41.02, -48.66)
CIE-LCHlch(25.22, 63.64, 310.13°)
OKLaboklab(37.36% 0.0704 -0.1392)
OKLCHoklch(37.36% 0.156 296.8)
XYZxyz(7.9536, 4.4877, 23.3641)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2387 #5E8723
analogous
#232C87 #4C2387 #7E2387
triadic
#4C2387 #874C23 #23874C
tetradic
#4C2387 #87232C #5E8723 #23877E
square
#4C2387 #87232C #5E8723 #23877E
split-complementary
#4C2387 #877E23 #2C8723
monochromatic
#150A26 #311656 #4C2387 #6730B8 #8752D2

Accessibility & contrast

On white

11.07
#4C2387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#4C2387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2387
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2387#FFFFFF#000000##FFFFFF
##4C23871.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8A
Deuteranopia (green-blind)
#003B85
Tritanopia (blue-blind)
#3D3C53
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4c2387;
/* rgb */ color: rgb(76, 35, 135);
/* oklch */ color: oklch(37.4% 0.156 296.8);
Tailwind
colors: {
  custom: {
    50: '#8462ab',
    500: '#4c2387',
    950: '#000000',
  },
}
SCSS
$custom: #4c2387;
$custom-light: #8462ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2387",
  "rgb": {
    "r": 76,
    "g": 35,
    "b": 135
  },
  "hsl": {
    "h": 264.6,
    "s": 58.824,
    "l": 33.333
  },
  "oklch": {
    "l": 0.37364,
    "c": 0.15596,
    "h": 296.8
  },
  "luminance": 0.04488
}

Semantic roles & 50–950 ramp

primary
#4C2387
secondary
#8CB650
accent
#E246A2
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4C2387

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

Preview Lab → · Contrast checker → · Palette generator →

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