#4C228B#4C228B

#4C228B is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.162 H 295.8°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#4C228B
RGBrgb(76, 34, 139)
HSLhsl(264, 61%, 34%)
HSVhsv(264, 76%, 55%)
CMYKcmyk(45.3%, 75.5%, 0%, 45.5%)
CIE-LABlab(25.40, 42.61, -50.88)
CIE-LCHlch(25.40, 66.36, 309.95°)
OKLaboklab(37.6% 0.0704 -0.1457)
OKLCHoklch(37.6% 0.162 295.8)
XYZxyz(8.2115, 4.5444, 24.8656)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C228B #618B22
analogous
#222D8B #4C228B #81228B
triadic
#4C228B #8B4C22 #228B4C
tetradic
#4C228B #8B222D #618B22 #228B81
square
#4C228B #8B222D #618B22 #228B81
split-complementary
#4C228B #8B8122 #2D8B22
monochromatic
#160A29 #31165A #4C228B #672EBC #8753D5

Accessibility & contrast

On white

11.00
#4C228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C228B
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C228B#FFFFFF#000000##FFFFFF
##4C228B1.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003B89
Tritanopia (blue-blind)
#3B3D55
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4c228b;
/* rgb */ color: rgb(76, 34, 139);
/* oklch */ color: oklch(37.6% 0.162 295.8);
Tailwind
colors: {
  custom: {
    50: '#8461ae',
    500: '#4c228b',
    950: '#000000',
  },
}
SCSS
$custom: #4c228b;
$custom-light: #8461ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4c228b",
  "rgb": {
    "r": 76,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 264,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37595,
    "c": 0.1618,
    "h": 295.8
  },
  "luminance": 0.04545
}

Semantic roles & 50–950 ramp

primary
#4C228B
secondary
#8FB850
accent
#E444A4
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4C228B

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

Preview Lab → · Contrast checker → · Palette generator →

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