#4C226A#4C226A

#4C226A is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.9% C 0.123 H 308.1°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#4C226A
RGBrgb(76, 34, 106)
HSLhsl(275, 51%, 27%)
HSVhsv(275, 68%, 42%)
CMYKcmyk(28.3%, 67.9%, 0%, 58.4%)
CIE-LABlab(22.73, 33.84, -34.24)
CIE-LCHlch(22.73, 48.14, 314.66°)
OKLaboklab(34.86% 0.0759 -0.0968)
OKLCHoklch(34.86% 0.123 308.1)
XYZxyz(6.1535, 3.7213, 14.0270)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C226A #406A22
analogous
#28226A #4C226A #6A2264
triadic
#4C226A #6A4C22 #226A4C
tetradic
#4C226A #6A2822 #406A22 #22646A
square
#4C226A #6A2822 #406A22 #22646A
split-complementary
#4C226A #646A22 #226A28
monochromatic
#110717 #2B133C #4C226A #6D3198 #8E44C3

Accessibility & contrast

On white

12.04
#4C226A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4C226A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C226A
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C226A#FFFFFF#000000##FFFFFF
##4C226A1.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00356C
Deuteranopia (green-blind)
#153768
Tritanopia (blue-blind)
#473142
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4c226a;
/* rgb */ color: rgb(76, 34, 106);
/* oklch */ color: oklch(34.9% 0.123 308.1);
Tailwind
colors: {
  custom: {
    50: '#816095',
    500: '#4c226a',
    950: '#000000',
  },
}
SCSS
$custom: #4c226a;
$custom-light: #816095;
$custom-dark: #000000;
JSON
{
  "hex": "#4c226a",
  "rgb": {
    "r": 76,
    "g": 34,
    "b": 106
  },
  "hsl": {
    "h": 275,
    "s": 51.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.34856,
    "c": 0.12299,
    "h": 308.1
  },
  "luminance": 0.03721
}

Semantic roles & 50–950 ramp

primary
#4C226A
secondary
#6D9E4A
accent
#DB4D88
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #4C226A

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

Preview Lab → · Contrast checker → · Palette generator →

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