#4C227C#4C227C

#4C227C is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.144 H 300.7°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#4C227C
RGBrgb(76, 34, 124)
HSLhsl(268, 57%, 31%)
HSVhsv(268, 73%, 49%)
CMYKcmyk(38.7%, 72.6%, 0%, 51.4%)
CIE-LABlab(24.12, 38.55, -43.54)
CIE-LCHlch(24.12, 58.15, 311.52°)
OKLaboklab(36.29% 0.0736 -0.1241)
OKLCHoklch(36.29% 0.144 300.7)
XYZxyz(7.1897, 4.1357, 19.4844)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C227C #527C22
analogous
#22257C #4C227C #79227C
triadic
#4C227C #7C4C22 #227C4C
tetradic
#4C227C #7C2225 #527C22 #227C79
square
#4C227C #7C2225 #527C22 #227C79
split-complementary
#4C227C #7C7922 #257C22
monochromatic
#11081C #2F154C #4C227C #692FAC #884BCE

Accessibility & contrast

On white

11.49
#4C227C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#4C227C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C227C
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C227C#FFFFFF#000000##FFFFFF
##4C227C1.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397F
Deuteranopia (green-blind)
#00397A
Tritanopia (blue-blind)
#41384C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4c227c;
/* rgb */ color: rgb(76, 34, 124);
/* oklch */ color: oklch(36.3% 0.144 300.7);
Tailwind
colors: {
  custom: {
    50: '#8361a3',
    500: '#4c227c',
    950: '#000000',
  },
}
SCSS
$custom: #4c227c;
$custom-light: #8361a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4c227c",
  "rgb": {
    "r": 76,
    "g": 34,
    "b": 124
  },
  "hsl": {
    "h": 268,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36289,
    "c": 0.1443,
    "h": 300.7
  },
  "luminance": 0.04136
}

Semantic roles & 50–950 ramp

primary
#4C227C
secondary
#80AF4B
accent
#E04899
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4C227C

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

Preview Lab → · Contrast checker → · Palette generator →

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