#4C2286#4C2286

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

Color values

HEX#4C2286
RGBrgb(76, 34, 134)
HSLhsl(265, 60%, 33%)
HSVhsv(265, 75%, 53%)
CMYKcmyk(43.3%, 74.6%, 0%, 47.5%)
CIE-LABlab(24.96, 41.25, -48.47)
CIE-LCHlch(24.96, 63.65, 310.40°)
OKLaboklab(37.15% 0.0716 -0.1386)
OKLCHoklch(37.15% 0.156 297.3)
XYZxyz(7.8545, 4.4016, 22.9854)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2286 #5C8622
analogous
#222A86 #4C2286 #7E2286
triadic
#4C2286 #864C22 #22864C
tetradic
#4C2286 #86222A #5C8622 #22867E
square
#4C2286 #86222A #5C8622 #22867E
split-complementary
#4C2286 #867E22 #2A8622
monochromatic
#150924 #301655 #4C2286 #682EB7 #8750D3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C2286#FFFFFF#000000##FFFFFF
##4C22861.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)
#003C89
Deuteranopia (green-blind)
#003A84
Tritanopia (blue-blind)
#3D3B52
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4c2286;
/* rgb */ color: rgb(76, 34, 134);
/* oklch */ color: oklch(37.1% 0.156 297.3);
Tailwind
colors: {
  custom: {
    50: '#8461aa',
    500: '#4c2286',
    950: '#000000',
  },
}
SCSS
$custom: #4c2286;
$custom-light: #8461aa;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2286",
  "rgb": {
    "r": 76,
    "g": 34,
    "b": 134
  },
  "hsl": {
    "h": 265.2,
    "s": 59.524,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37149,
    "c": 0.15601,
    "h": 297.3
  },
  "luminance": 0.04402
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4C2286

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

Preview Lab → · Contrast checker → · Palette generator →

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