#4C2987#4C2987

#4C2987 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.2% C 0.148 H 295.6°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#4C2987
RGBrgb(76, 41, 135)
HSLhsl(262, 53%, 35%)
HSVhsv(262, 70%, 53%)
CMYKcmyk(43.7%, 69.6%, 0%, 47.1%)
CIE-LABlab(26.37, 37.83, -46.80)
CIE-LCHlch(26.37, 60.18, 308.95°)
OKLaboklab(38.18% 0.0641 -0.1337)
OKLCHoklch(38.18% 0.148 295.6)
XYZxyz(8.1454, 4.8715, 23.4281)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2987 #648729
analogous
#293587 #4C2987 #7B2987
triadic
#4C2987 #874C29 #29874C
tetradic
#4C2987 #872935 #648729 #29877B
square
#4C2987 #872935 #648729 #29877B
split-complementary
#4C2987 #877B29 #358729
monochromatic
#170C29 #321B58 #4C2987 #6637B6 #875DCE

Accessibility & contrast

On white

10.64
#4C2987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#4C2987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2987
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2987#FFFFFF#000000##FFFFFF
##4C29871.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c2987;
/* rgb */ color: rgb(76, 41, 135);
/* oklch */ color: oklch(38.2% 0.148 295.6);
Tailwind
colors: {
  custom: {
    50: '#8365ab',
    500: '#4c2987',
    950: '#000000',
  },
}
SCSS
$custom: #4c2987;
$custom-light: #8365ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2987",
  "rgb": {
    "r": 76,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 262.34,
    "s": 53.409,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38179,
    "c": 0.1483,
    "h": 295.6
  },
  "luminance": 0.04872
}

Semantic roles & 50–950 ramp

primary
#4C2987
secondary
#91B359
accent
#DD4BA7
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C2987

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

Preview Lab → · Contrast checker → · Palette generator →

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