#4C2189#4C2189

#4C2189 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.161 H 296.6°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#4C2189
RGBrgb(76, 33, 137)
HSLhsl(265, 61%, 33%)
HSVhsv(265, 76%, 54%)
CMYKcmyk(44.5%, 75.9%, 0%, 46.3%)
CIE-LABlab(25.05, 42.55, -50.20)
CIE-LCHlch(25.05, 65.81, 310.29°)
OKLaboklab(37.29% 0.0719 -0.1437)
OKLCHoklch(37.29% 0.161 296.6)
XYZxyz(8.0385, 4.4302, 24.0936)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2189 #5E8921
analogous
#212A89 #4C2189 #802189
triadic
#4C2189 #894C21 #21894C
tetradic
#4C2189 #89212A #5E8921 #218980
square
#4C2189 #89212A #5E8921 #218980
split-complementary
#4C2189 #898021 #2A8921
monochromatic
#150926 #311558 #4C2189 #672DBA #8750D5

Accessibility & contrast

On white

11.13
#4C2189 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#4C2189 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2189
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2189#FFFFFF#000000##FFFFFF
##4C21891.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8C
Deuteranopia (green-blind)
#003A87
Tritanopia (blue-blind)
#3C3C53
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4c2189;
/* rgb */ color: rgb(76, 33, 137);
/* oklch */ color: oklch(37.3% 0.161 296.6);
Tailwind
colors: {
  custom: {
    50: '#8461ac',
    500: '#4c2189',
    950: '#000000',
  },
}
SCSS
$custom: #4c2189;
$custom-light: #8461ac;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2189",
  "rgb": {
    "r": 76,
    "g": 33,
    "b": 137
  },
  "hsl": {
    "h": 264.808,
    "s": 61.176,
    "l": 33.333
  },
  "oklch": {
    "l": 0.37293,
    "c": 0.16064,
    "h": 296.6
  },
  "luminance": 0.0443
}

Semantic roles & 50–950 ramp

primary
#4C2189
secondary
#8CB84E
accent
#E444A2
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4C2189

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

Preview Lab → · Contrast checker → · Palette generator →

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