#4C228C#4C228C

#4C228C is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.7% C 0.163 H 295.5°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#4C228C
RGBrgb(76, 34, 140)
HSLhsl(264, 61%, 34%)
HSVhsv(264, 76%, 55%)
CMYKcmyk(45.7%, 75.7%, 0%, 45.1%)
CIE-LABlab(25.48, 42.88, -51.35)
CIE-LCHlch(25.48, 66.90, 309.86°)
OKLaboklab(37.69% 0.0702 -0.1471)
OKLCHoklch(37.69% 0.163 295.5)
XYZxyz(8.2849, 4.5738, 25.2522)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C228C #628C22
analogous
#222D8C #4C228C #81228C
triadic
#4C228C #8C4C22 #228C4C
tetradic
#4C228C #8C222D #628C22 #228C81
square
#4C228C #8C222D #628C22 #228C81
split-complementary
#4C228C #8C8122 #2D8C22
monochromatic
#170A2A #31165B #4C228C #672EBD #8753D5

Accessibility & contrast

On white

10.97
#4C228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#4C228C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C228C
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C228C#FFFFFF#000000##FFFFFF
##4C228C1.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8F
Deuteranopia (green-blind)
#003B8A
Tritanopia (blue-blind)
#3A3E55
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4c228c;
/* rgb */ color: rgb(76, 34, 140);
/* oklch */ color: oklch(37.7% 0.163 295.5);
Tailwind
colors: {
  custom: {
    50: '#8561ae',
    500: '#4c228c',
    950: '#000000',
  },
}
SCSS
$custom: #4c228c;
$custom-light: #8561ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4c228c",
  "rgb": {
    "r": 76,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 263.774,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37685,
    "c": 0.16295,
    "h": 295.5
  },
  "luminance": 0.04574
}

Semantic roles & 50–950 ramp

primary
#4C228C
secondary
#90B951
accent
#E444A5
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4C228C

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

Preview Lab → · Contrast checker → · Palette generator →

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