#4C227D#4C227D

#4C227D is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.4% C 0.145 H 300.3°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#4C227D
RGBrgb(76, 34, 125)
HSLhsl(268, 57%, 31%)
HSVhsv(268, 73%, 49%)
CMYKcmyk(39.2%, 72.8%, 0%, 51%)
CIE-LABlab(24.20, 38.82, -44.04)
CIE-LCHlch(24.20, 58.70, 311.39°)
OKLaboklab(36.37% 0.0734 -0.1256)
OKLCHoklch(36.37% 0.145 300.3)
XYZxyz(7.2533, 4.1612, 19.8191)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C227D #537D22
analogous
#22257D #4C227D #79227D
triadic
#4C227D #7D4C22 #227D4C
tetradic
#4C227D #7D2225 #537D22 #227D79
square
#4C227D #7D2225 #537D22 #227D79
split-complementary
#4C227D #7D7922 #257D22
monochromatic
#11081D #2F154D #4C227D #692FAD #884BCE

Accessibility & contrast

On white

11.46
#4C227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C227D
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C227D#FFFFFF#000000##FFFFFF
##4C227D1.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#00397B
Tritanopia (blue-blind)
#41384D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4c227d;
/* rgb */ color: rgb(76, 34, 125);
/* oklch */ color: oklch(36.4% 0.145 300.3);
Tailwind
colors: {
  custom: {
    50: '#8361a3',
    500: '#4c227d',
    950: '#000000',
  },
}
SCSS
$custom: #4c227d;
$custom-light: #8361a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4c227d",
  "rgb": {
    "r": 76,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 267.692,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36373,
    "c": 0.14549,
    "h": 300.3
  },
  "luminance": 0.04161
}

Semantic roles & 50–950 ramp

primary
#4C227D
secondary
#81B04B
accent
#E0479A
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4C227D

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

Preview Lab → · Contrast checker → · Palette generator →

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