#4C2887#4C2887

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

Color values

HEX#4C2887
RGBrgb(76, 40, 135)
HSLhsl(263, 54%, 34%)
HSVhsv(263, 70%, 53%)
CMYKcmyk(43.7%, 70.4%, 0%, 47.1%)
CIE-LABlab(26.17, 38.38, -47.13)
CIE-LCHlch(26.17, 60.78, 309.16°)
OKLaboklab(38.04% 0.0652 -0.1347)
OKLCHoklch(38.04% 0.15 295.8)
XYZxyz(8.1113, 4.8032, 23.4167)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2887 #638728
analogous
#283387 #4C2887 #7C2887
triadic
#4C2887 #874C28 #28874C
tetradic
#4C2887 #872833 #638728 #28877C
square
#4C2887 #872833 #638728 #28877C
split-complementary
#4C2887 #877C28 #338728
monochromatic
#170C29 #311A58 #4C2887 #6736B6 #875BCE

Accessibility & contrast

On white

10.71
#4C2887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#4C2887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2887
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2887#FFFFFF#000000##FFFFFF
##4C28871.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c2887;
/* rgb */ color: rgb(76, 40, 135);
/* oklch */ color: oklch(38.0% 0.150 295.8);
Tailwind
colors: {
  custom: {
    50: '#8365ab',
    500: '#4c2887',
    950: '#000000',
  },
}
SCSS
$custom: #4c2887;
$custom-light: #8365ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2887",
  "rgb": {
    "r": 76,
    "g": 40,
    "b": 135
  },
  "hsl": {
    "h": 262.737,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38036,
    "c": 0.14962,
    "h": 295.8
  },
  "luminance": 0.04803
}

Semantic roles & 50–950 ramp

primary
#4C2887
secondary
#91B457
accent
#DE4AA6
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C2887

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

Preview Lab → · Contrast checker → · Palette generator →

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