#4C2788#4C2788

#4C2788 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.0% C 0.152 H 295.7°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#4C2788
RGBrgb(76, 39, 136)
HSLhsl(263, 55%, 34%)
HSVhsv(263, 71%, 53%)
CMYKcmyk(44.1%, 71.3%, 0%, 46.7%)
CIE-LABlab(26.05, 39.20, -47.93)
CIE-LCHlch(26.05, 61.92, 309.28°)
OKLaboklab(37.98% 0.0661 -0.137)
OKLCHoklch(37.98% 0.152 295.7)
XYZxyz(8.1488, 4.7649, 23.7782)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2788 #638827
analogous
#273288 #4C2788 #7D2788
triadic
#4C2788 #884C27 #27884C
tetradic
#4C2788 #882732 #638827 #27887D
square
#4C2788 #882732 #638827 #27887D
split-complementary
#4C2788 #887D27 #328827
monochromatic
#170C29 #311958 #4C2788 #6735B8 #875AD0

Accessibility & contrast

On white

10.75
#4C2788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C2788
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2788#FFFFFF#000000##FFFFFF
##4C27881.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8B
Deuteranopia (green-blind)
#003C86
Tritanopia (blue-blind)
#3C3F54
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4c2788;
/* rgb */ color: rgb(76, 39, 136);
/* oklch */ color: oklch(38.0% 0.152 295.7);
Tailwind
colors: {
  custom: {
    50: '#8464ab',
    500: '#4c2788',
    950: '#000000',
  },
}
SCSS
$custom: #4c2788;
$custom-light: #8464ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2788",
  "rgb": {
    "r": 76,
    "g": 39,
    "b": 136
  },
  "hsl": {
    "h": 262.887,
    "s": 55.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.37982,
    "c": 0.15214,
    "h": 295.7
  },
  "luminance": 0.04765
}

Semantic roles & 50–950 ramp

primary
#4C2788
secondary
#91B556
accent
#DF49A6
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C2788

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

Preview Lab → · Contrast checker → · Palette generator →

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