#4C228E#4C228E

#4C228E is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.9% C 0.165 H 294.9°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#4C228E
RGBrgb(76, 34, 142)
HSLhsl(263, 61%, 35%)
HSVhsv(263, 76%, 56%)
CMYKcmyk(46.5%, 76.1%, 0%, 44.3%)
CIE-LABlab(25.66, 43.43, -52.30)
CIE-LCHlch(25.66, 67.98, 309.70°)
OKLaboklab(37.87% 0.0697 -0.1499)
OKLCHoklch(37.87% 0.165 294.9)
XYZxyz(8.4337, 4.6333, 26.0359)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C228E #648E22
analogous
#222E8E #4C228E #82228E
triadic
#4C228E #8E4C22 #228E4C
tetradic
#4C228E #8E222E #648E22 #228E82
square
#4C228E #8E222E #648E22 #228E82
split-complementary
#4C228E #8E8222 #2E8E22
monochromatic
#170A2B #32165D #4C228E #662EBF #8754D6

Accessibility & contrast

On white

10.90
#4C228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#4C228E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C228E
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C228E#FFFFFF#000000##FFFFFF
##4C228E1.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#003B8C
Tritanopia (blue-blind)
#393F56
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4c228e;
/* rgb */ color: rgb(76, 34, 142);
/* oklch */ color: oklch(37.9% 0.165 294.9);
Tailwind
colors: {
  custom: {
    50: '#8562b0',
    500: '#4c228e',
    950: '#000000',
  },
}
SCSS
$custom: #4c228e;
$custom-light: #8562b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c228e",
  "rgb": {
    "r": 76,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 263.333,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.37866,
    "c": 0.16526,
    "h": 294.9
  },
  "luminance": 0.04634
}

Semantic roles & 50–950 ramp

primary
#4C228E
secondary
#91BA52
accent
#E443A6
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4C228E

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

Preview Lab → · Contrast checker → · Palette generator →

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