#4C228D#4C228D

#4C228D is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.164 H 295.2°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#4C228D
RGBrgb(76, 34, 141)
HSLhsl(264, 61%, 34%)
HSVhsv(264, 76%, 55%)
CMYKcmyk(46.1%, 75.9%, 0%, 44.7%)
CIE-LABlab(25.57, 43.16, -51.83)
CIE-LCHlch(25.57, 67.44, 309.78°)
OKLaboklab(37.78% 0.0699 -0.1485)
OKLCHoklch(37.78% 0.164 295.2)
XYZxyz(8.3589, 4.6034, 25.6423)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C228D #638D22
analogous
#222E8D #4C228D #82228D
triadic
#4C228D #8D4C22 #228D4C
tetradic
#4C228D #8D222E #638D22 #228D82
square
#4C228D #8D222E #638D22 #228D82
split-complementary
#4C228D #8D8222 #2E8D22
monochromatic
#170A2A #31165C #4C228D #672EBE #8754D6

Accessibility & contrast

On white

10.93
#4C228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#4C228D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C228D
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C228D#FFFFFF#000000##FFFFFF
##4C228D1.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#003B8B
Tritanopia (blue-blind)
#3A3E56
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4c228d;
/* rgb */ color: rgb(76, 34, 141);
/* oklch */ color: oklch(37.8% 0.164 295.2);
Tailwind
colors: {
  custom: {
    50: '#8562af',
    500: '#4c228d',
    950: '#000000',
  },
}
SCSS
$custom: #4c228d;
$custom-light: #8562af;
$custom-dark: #000000;
JSON
{
  "hex": "#4c228d",
  "rgb": {
    "r": 76,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 263.551,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.37776,
    "c": 0.16411,
    "h": 295.2
  },
  "luminance": 0.04604
}

Semantic roles & 50–950 ramp

primary
#4C228D
secondary
#91B951
accent
#E444A5
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4C228D

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

Preview Lab → · Contrast checker → · Palette generator →

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