#4C2087#4C2087

#4C2087 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.160 H 297.4°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#4C2087
RGBrgb(76, 32, 135)
HSLhsl(266, 62%, 33%)
HSVhsv(266, 76%, 53%)
CMYKcmyk(43.7%, 76.3%, 0%, 47.1%)
CIE-LABlab(24.70, 42.50, -49.52)
CIE-LCHlch(24.70, 65.26, 310.64°)
OKLaboklab(36.99% 0.0733 -0.1417)
OKLCHoklch(36.99% 0.16 297.4)
XYZxyz(7.8690, 4.3186, 23.3360)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2087 #5B8720
analogous
#202787 #4C2087 #7F2087
triadic
#4C2087 #874C20 #20874C
tetradic
#4C2087 #872027 #5B8720 #20877F
square
#4C2087 #872027 #5B8720 #20877F
split-complementary
#4C2087 #877F20 #278720
monochromatic
#140924 #301456 #4C2087 #682CB8 #874DD5

Accessibility & contrast

On white

11.27
#4C2087 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4C2087 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2087
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2087#FFFFFF#000000##FFFFFF
##4C20871.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003985
Tritanopia (blue-blind)
#3D3B52
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4c2087;
/* rgb */ color: rgb(76, 32, 135);
/* oklch */ color: oklch(37.0% 0.160 297.4);
Tailwind
colors: {
  custom: {
    50: '#8460ab',
    500: '#4c2087',
    950: '#000000',
  },
}
SCSS
$custom: #4c2087;
$custom-light: #8460ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2087",
  "rgb": {
    "r": 76,
    "g": 32,
    "b": 135
  },
  "hsl": {
    "h": 265.631,
    "s": 61.677,
    "l": 32.745
  },
  "oklch": {
    "l": 0.36994,
    "c": 0.1595,
    "h": 297.4
  },
  "luminance": 0.04319
}

Semantic roles & 50–950 ramp

primary
#4C2087
secondary
#89B84B
accent
#E543A0
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4C2087

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

Preview Lab → · Contrast checker → · Palette generator →

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