#4C227E#4C227E

#4C227E is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.5% C 0.147 H 300.0°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#4C227E
RGBrgb(76, 34, 126)
HSLhsl(267, 58%, 31%)
HSVhsv(267, 73%, 49%)
CMYKcmyk(39.7%, 73%, 0%, 50.6%)
CIE-LABlab(24.28, 39.09, -44.54)
CIE-LCHlch(24.28, 59.26, 311.27°)
OKLaboklab(36.46% 0.0733 -0.127)
OKLCHoklch(36.46% 0.147 300)
XYZxyz(7.3175, 4.1868, 20.1572)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C227E #547E22
analogous
#22267E #4C227E #7A227E
triadic
#4C227E #7E4C22 #227E4C
tetradic
#4C227E #7E2226 #547E22 #227E7A
square
#4C227E #7E2226 #547E22 #227E7A
split-complementary
#4C227E #7E7A22 #267E22
monochromatic
#12081E #2F154E #4C227E #692FAE #884CCF

Accessibility & contrast

On white

11.43
#4C227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#4C227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C227E
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C227E#FFFFFF#000000##FFFFFF
##4C227E1.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c227e;
/* rgb */ color: rgb(76, 34, 126);
/* oklch */ color: oklch(36.5% 0.147 300.0);
Tailwind
colors: {
  custom: {
    50: '#8361a4',
    500: '#4c227e',
    950: '#000000',
  },
}
SCSS
$custom: #4c227e;
$custom-light: #8361a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4c227e",
  "rgb": {
    "r": 76,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 267.391,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36458,
    "c": 0.14665,
    "h": 300
  },
  "luminance": 0.04187
}

Semantic roles & 50–950 ramp

primary
#4C227E
secondary
#82B14B
accent
#E1479B
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4C227E

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

Preview Lab → · Contrast checker → · Palette generator →

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