#4C2889#4C2889

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

Color values

HEX#4C2889
RGBrgb(76, 40, 137)
HSLhsl(262, 55%, 35%)
HSVhsv(262, 71%, 54%)
CMYKcmyk(44.5%, 70.8%, 0%, 46.3%)
CIE-LABlab(26.33, 38.95, -48.10)
CIE-LCHlch(26.33, 61.89, 308.99°)
OKLaboklab(38.21% 0.0648 -0.1376)
OKLCHoklch(38.21% 0.152 295.2)
XYZxyz(8.2534, 4.8600, 24.1653)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2889 #658928
analogous
#283589 #4C2889 #7D2889
triadic
#4C2889 #894C28 #28894C
tetradic
#4C2889 #892835 #658928 #28897D
square
#4C2889 #892835 #658928 #28897D
split-complementary
#4C2889 #897D28 #358928
monochromatic
#170C2A #321A5A #4C2889 #6636B8 #875CCF

Accessibility & contrast

On white

10.65
#4C2889 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C2889
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2889#FFFFFF#000000##FFFFFF
##4C28891.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8C
Deuteranopia (green-blind)
#003D87
Tritanopia (blue-blind)
#3B4055
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4c2889;
/* rgb */ color: rgb(76, 40, 137);
/* oklch */ color: oklch(38.2% 0.152 295.2);
Tailwind
colors: {
  custom: {
    50: '#8465ac',
    500: '#4c2889',
    950: '#000000',
  },
}
SCSS
$custom: #4c2889;
$custom-light: #8465ac;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2889",
  "rgb": {
    "r": 76,
    "g": 40,
    "b": 137
  },
  "hsl": {
    "h": 262.268,
    "s": 54.802,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38206,
    "c": 0.15207,
    "h": 295.2
  },
  "luminance": 0.0486
}

Semantic roles & 50–950 ramp

primary
#4C2889
secondary
#92B558
accent
#DE4AA7
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C2889

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

Preview Lab → · Contrast checker → · Palette generator →

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