#4C2891#4C2891

#4C2891 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.9% C 0.162 H 293.0°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#4C2891
RGBrgb(76, 40, 145)
HSLhsl(261, 57%, 36%)
HSVhsv(261, 72%, 57%)
CMYKcmyk(47.6%, 72.4%, 0%, 43.1%)
CIE-LABlab(27.01, 41.21, -51.96)
CIE-LCHlch(27.01, 66.32, 308.42°)
OKLaboklab(38.9% 0.0633 -0.1489)
OKLCHoklch(38.9% 0.162 293)
XYZxyz(8.8487, 5.0981, 27.3004)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2891 #6D9128
analogous
#283991 #4C2891 #812891
triadic
#4C2891 #914C28 #28914C
tetradic
#4C2891 #912839 #6D9128 #289181
square
#4C2891 #912839 #6D9128 #289181
split-complementary
#4C2891 #918128 #399128
monochromatic
#1A0E31 #331B61 #4C2891 #6535C1 #8860D3

Accessibility & contrast

On white

10.40
#4C2891 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4C2891 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2891
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2891#FFFFFF#000000##FFFFFF
##4C28911.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004194
Deuteranopia (green-blind)
#003E8F
Tritanopia (blue-blind)
#374359
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4c2891;
/* rgb */ color: rgb(76, 40, 145);
/* oklch */ color: oklch(38.9% 0.162 293.0);
Tailwind
colors: {
  custom: {
    50: '#8565b2',
    500: '#4c2891',
    950: '#000000',
  },
}
SCSS
$custom: #4c2891;
$custom-light: #8565b2;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2891",
  "rgb": {
    "r": 76,
    "g": 40,
    "b": 145
  },
  "hsl": {
    "h": 260.571,
    "s": 56.757,
    "l": 36.275
  },
  "oklch": {
    "l": 0.38903,
    "c": 0.16177,
    "h": 293
  },
  "luminance": 0.05098
}

Semantic roles & 50–950 ramp

primary
#4C2891
secondary
#99B95C
accent
#E048AC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4C2891

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

Preview Lab → · Contrast checker → · Palette generator →

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