#4C2287#4C2287

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

Color values

HEX#4C2287
RGBrgb(76, 34, 135)
HSLhsl(265, 60%, 33%)
HSVhsv(265, 75%, 53%)
CMYKcmyk(43.7%, 74.8%, 0%, 47.1%)
CIE-LABlab(25.04, 41.52, -48.95)
CIE-LCHlch(25.04, 64.19, 310.30°)
OKLaboklab(37.24% 0.0714 -0.14)
OKLCHoklch(37.24% 0.157 297)
XYZxyz(7.9245, 4.4297, 23.3545)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2287 #5D8722
analogous
#222B87 #4C2287 #7E2287
triadic
#4C2287 #874C22 #22874C
tetradic
#4C2287 #87222B #5D8722 #22877E
square
#4C2287 #87222B #5D8722 #22877E
split-complementary
#4C2287 #877E22 #2B8722
monochromatic
#150925 #301656 #4C2287 #682EB8 #8750D3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C2287#FFFFFF#000000##FFFFFF
##4C22871.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)
#003C8A
Deuteranopia (green-blind)
#003A85
Tritanopia (blue-blind)
#3D3C52
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4c2287;
/* rgb */ color: rgb(76, 34, 135);
/* oklch */ color: oklch(37.2% 0.157 297.0);
Tailwind
colors: {
  custom: {
    50: '#8461ab',
    500: '#4c2287',
    950: '#000000',
  },
}
SCSS
$custom: #4c2287;
$custom-light: #8461ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2287",
  "rgb": {
    "r": 76,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 264.95,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37238,
    "c": 0.15717,
    "h": 297
  },
  "luminance": 0.0443
}

Semantic roles & 50–950 ramp

primary
#4C2287
secondary
#8BB74E
accent
#E345A1
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4C2287

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

Preview Lab → · Contrast checker → · Palette generator →

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