#4C2188#4C2188

#4C2188 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.2% C 0.160 H 296.9°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#4C2188
RGBrgb(76, 33, 136)
HSLhsl(265, 61%, 33%)
HSVhsv(265, 76%, 53%)
CMYKcmyk(44.1%, 75.7%, 0%, 46.7%)
CIE-LABlab(24.96, 42.28, -49.72)
CIE-LCHlch(24.96, 65.27, 310.38°)
OKLaboklab(37.2% 0.0721 -0.1423)
OKLCHoklch(37.2% 0.16 296.9)
XYZxyz(7.9671, 4.4016, 23.7176)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2188 #5D8821
analogous
#212988 #4C2188 #7F2188
triadic
#4C2188 #884C21 #21884C
tetradic
#4C2188 #882129 #5D8821 #21887F
square
#4C2188 #882129 #5D8821 #21887F
split-complementary
#4C2188 #887F21 #298821
monochromatic
#150925 #301557 #4C2188 #682DB9 #874FD4

Accessibility & contrast

On white

11.17
#4C2188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#4C2188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2188
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2188#FFFFFF#000000##FFFFFF
##4C21881.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c2188;
/* rgb */ color: rgb(76, 33, 136);
/* oklch */ color: oklch(37.2% 0.160 296.9);
Tailwind
colors: {
  custom: {
    50: '#8461ac',
    500: '#4c2188',
    950: '#000000',
  },
}
SCSS
$custom: #4c2188;
$custom-light: #8461ac;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2188",
  "rgb": {
    "r": 76,
    "g": 33,
    "b": 136
  },
  "hsl": {
    "h": 265.049,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37204,
    "c": 0.1595,
    "h": 296.9
  },
  "luminance": 0.04402
}

Semantic roles & 50–950 ramp

primary
#4C2188
secondary
#8BB84D
accent
#E444A1
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4C2188

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

Preview Lab → · Contrast checker → · Palette generator →

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