#4C2787#4C2787

#4C2787 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.9% C 0.151 H 296.0°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#4C2787
RGBrgb(76, 39, 135)
HSLhsl(263, 55%, 34%)
HSVhsv(263, 71%, 53%)
CMYKcmyk(43.7%, 71.1%, 0%, 47.1%)
CIE-LABlab(25.97, 38.92, -47.44)
CIE-LCHlch(25.97, 61.37, 309.37°)
OKLaboklab(37.9% 0.0663 -0.1356)
OKLCHoklch(37.9% 0.151 296)
XYZxyz(8.0780, 4.7366, 23.4056)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2787 #628727
analogous
#273287 #4C2787 #7C2787
triadic
#4C2787 #874C27 #27874C
tetradic
#4C2787 #872732 #628727 #27877C
square
#4C2787 #872732 #628727 #27877C
split-complementary
#4C2787 #877C27 #328727
monochromatic
#170C28 #311958 #4C2787 #6735B6 #8759CF

Accessibility & contrast

On white

10.78
#4C2787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#4C2787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2787
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2787#FFFFFF#000000##FFFFFF
##4C27871.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#003C85
Tritanopia (blue-blind)
#3C3F54
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4c2787;
/* rgb */ color: rgb(76, 39, 135);
/* oklch */ color: oklch(37.9% 0.151 296.0);
Tailwind
colors: {
  custom: {
    50: '#8464ab',
    500: '#4c2787',
    950: '#000000',
  },
}
SCSS
$custom: #4c2787;
$custom-light: #8464ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2787",
  "rgb": {
    "r": 76,
    "g": 39,
    "b": 135
  },
  "hsl": {
    "h": 263.125,
    "s": 55.172,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37896,
    "c": 0.15094,
    "h": 296
  },
  "luminance": 0.04737
}

Semantic roles & 50–950 ramp

primary
#4C2787
secondary
#90B456
accent
#DF49A5
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C2787

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

Preview Lab → · Contrast checker → · Palette generator →

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