#4C2284#4C2284

#4C2284 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.154 H 298.0°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#4C2284
RGBrgb(76, 34, 132)
HSLhsl(266, 59%, 33%)
HSVhsv(266, 74%, 52%)
CMYKcmyk(42.4%, 74.2%, 0%, 48.2%)
CIE-LABlab(24.79, 40.70, -47.50)
CIE-LCHlch(24.79, 62.55, 310.60°)
OKLaboklab(36.97% 0.072 -0.1357)
OKLCHoklch(36.97% 0.154 298)
XYZxyz(7.7163, 4.3464, 22.2577)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2284 #5A8422
analogous
#222984 #4C2284 #7D2284
triadic
#4C2284 #844C22 #22844C
tetradic
#4C2284 #842229 #5A8422 #22847D
square
#4C2284 #842229 #5A8422 #22847D
split-complementary
#4C2284 #847D22 #298422
monochromatic
#140923 #301553 #4C2284 #682FB5 #874FD2

Accessibility & contrast

On white

11.23
#4C2284 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4C2284 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2284
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2284#FFFFFF#000000##FFFFFF
##4C22841.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B87
Deuteranopia (green-blind)
#003A82
Tritanopia (blue-blind)
#3E3B51
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4c2284;
/* rgb */ color: rgb(76, 34, 132);
/* oklch */ color: oklch(37.0% 0.154 298.0);
Tailwind
colors: {
  custom: {
    50: '#8461a9',
    500: '#4c2284',
    950: '#000000',
  },
}
SCSS
$custom: #4c2284;
$custom-light: #8461a9;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2284",
  "rgb": {
    "r": 76,
    "g": 34,
    "b": 132
  },
  "hsl": {
    "h": 265.714,
    "s": 59.036,
    "l": 32.549
  },
  "oklch": {
    "l": 0.36974,
    "c": 0.15368,
    "h": 298
  },
  "luminance": 0.04346
}

Semantic roles & 50–950 ramp

primary
#4C2284
secondary
#88B54D
accent
#E2469F
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4C2284

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

Preview Lab → · Contrast checker → · Palette generator →

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