#4C2989#4C2989

#4C2989 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.3% C 0.151 H 295.0°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#4C2989
RGBrgb(76, 41, 137)
HSLhsl(262, 54%, 35%)
HSVhsv(262, 70%, 54%)
CMYKcmyk(44.5%, 70.1%, 0%, 46.3%)
CIE-LABlab(26.53, 38.40, -47.78)
CIE-LCHlch(26.53, 61.30, 308.79°)
OKLaboklab(38.35% 0.0638 -0.1366)
OKLCHoklch(38.35% 0.151 295)
XYZxyz(8.2876, 4.9283, 24.1767)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2989 #668929
analogous
#293689 #4C2989 #7C2989
triadic
#4C2989 #894C29 #29894C
tetradic
#4C2989 #892936 #668929 #29897C
square
#4C2989 #892936 #668929 #29897C
split-complementary
#4C2989 #897C29 #368929
monochromatic
#180D2B #321B5A #4C2989 #6637B8 #875ECF

Accessibility & contrast

On white

10.58
#4C2989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4C2989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2989
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2989#FFFFFF#000000##FFFFFF
##4C29891.0010.581.9910.58
#FFFFFF10.581.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408C
Deuteranopia (green-blind)
#003D87
Tritanopia (blue-blind)
#3B4055
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4c2989;
/* rgb */ color: rgb(76, 41, 137);
/* oklch */ color: oklch(38.3% 0.151 295.0);
Tailwind
colors: {
  custom: {
    50: '#8465ac',
    500: '#4c2989',
    950: '#000000',
  },
}
SCSS
$custom: #4c2989;
$custom-light: #8465ac;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2989",
  "rgb": {
    "r": 76,
    "g": 41,
    "b": 137
  },
  "hsl": {
    "h": 261.875,
    "s": 53.933,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38347,
    "c": 0.15077,
    "h": 295
  },
  "luminance": 0.04929
}

Semantic roles & 50–950 ramp

primary
#4C2989
secondary
#93B45A
accent
#DD4AA8
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C2989

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

Preview Lab → · Contrast checker → · Palette generator →

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