#4C2285#4C2285

#4C2285 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.1% C 0.155 H 297.6°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#4C2285
RGBrgb(76, 34, 133)
HSLhsl(265, 59%, 33%)
HSVhsv(265, 74%, 52%)
CMYKcmyk(42.9%, 74.4%, 0%, 47.8%)
CIE-LABlab(24.87, 40.98, -47.98)
CIE-LCHlch(24.87, 63.10, 310.50°)
OKLaboklab(37.06% 0.0718 -0.1372)
OKLCHoklch(37.06% 0.155 297.6)
XYZxyz(7.7851, 4.3739, 22.6198)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2285 #5B8522
analogous
#222985 #4C2285 #7E2285
triadic
#4C2285 #854C22 #22854C
tetradic
#4C2285 #852229 #5B8522 #22857E
square
#4C2285 #852229 #5B8522 #22857E
split-complementary
#4C2285 #857E22 #298522
monochromatic
#140924 #301654 #4C2285 #682EB6 #874FD2

Accessibility & contrast

On white

11.20
#4C2285 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C2285
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2285#FFFFFF#000000##FFFFFF
##4C22851.0011.201.8711.20
#FFFFFF11.201.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c2285;
/* rgb */ color: rgb(76, 34, 133);
/* oklch */ color: oklch(37.1% 0.155 297.6);
Tailwind
colors: {
  custom: {
    50: '#8461a9',
    500: '#4c2285',
    950: '#000000',
  },
}
SCSS
$custom: #4c2285;
$custom-light: #8461a9;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2285",
  "rgb": {
    "r": 76,
    "g": 34,
    "b": 133
  },
  "hsl": {
    "h": 265.455,
    "s": 59.281,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37062,
    "c": 0.15484,
    "h": 297.6
  },
  "luminance": 0.04374
}

Semantic roles & 50–950 ramp

primary
#4C2285
secondary
#89B64D
accent
#E245A0
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4C2285

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

Preview Lab → · Contrast checker → · Palette generator →

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