#4C2491#4C2491

#4C2491 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.166 H 293.8°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#4C2491
RGBrgb(76, 36, 145)
HSLhsl(262, 60%, 35%)
HSVhsv(262, 75%, 57%)
CMYKcmyk(47.6%, 75.2%, 0%, 43.1%)
CIE-LABlab(26.28, 43.27, -53.15)
CIE-LCHlch(26.28, 68.54, 309.15°)
OKLaboklab(38.39% 0.0671 -0.1524)
OKLCHoklch(38.39% 0.166 293.8)
XYZxyz(8.7208, 4.8423, 27.2577)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2491 #699124
analogous
#243391 #4C2491 #822491
triadic
#4C2491 #914C24 #24914C
tetradic
#4C2491 #912433 #699124 #249182
square
#4C2491 #912433 #699124 #249182
split-complementary
#4C2491 #918224 #339124
monochromatic
#190C2F #321860 #4C2491 #6630C2 #8759D6

Accessibility & contrast

On white

10.67
#4C2491 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C2491
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2491#FFFFFF#000000##FFFFFF
##4C24911.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F94
Deuteranopia (green-blind)
#003C8F
Tritanopia (blue-blind)
#374158
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4c2491;
/* rgb */ color: rgb(76, 36, 145);
/* oklch */ color: oklch(38.4% 0.166 293.8);
Tailwind
colors: {
  custom: {
    50: '#8563b2',
    500: '#4c2491',
    950: '#000000',
  },
}
SCSS
$custom: #4c2491;
$custom-light: #8563b2;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2491",
  "rgb": {
    "r": 76,
    "g": 36,
    "b": 145
  },
  "hsl": {
    "h": 262.018,
    "s": 60.221,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38385,
    "c": 0.16648,
    "h": 293.8
  },
  "luminance": 0.04843
}

Semantic roles & 50–950 ramp

primary
#4C2491
secondary
#96BA56
accent
#E344A9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4C2491

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

Preview Lab → · Contrast checker → · Palette generator →

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