#4C228A#4C228A

#4C228A is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.161 H 296.1°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#4C228A
RGBrgb(76, 34, 138)
HSLhsl(264, 60%, 34%)
HSVhsv(264, 75%, 54%)
CMYKcmyk(44.9%, 75.4%, 0%, 45.9%)
CIE-LABlab(25.31, 42.34, -50.40)
CIE-LCHlch(25.31, 65.82, 310.03°)
OKLaboklab(37.51% 0.0707 -0.1443)
OKLCHoklch(37.51% 0.161 296.1)
XYZxyz(8.1387, 4.5153, 24.4826)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C228A #608A22
analogous
#222C8A #4C228A #80228A
triadic
#4C228A #8A4C22 #228A4C
tetradic
#4C228A #8A222C #608A22 #228A80
square
#4C228A #8A222C #608A22 #228A80
split-complementary
#4C228A #8A8022 #2C8A22
monochromatic
#160A28 #311659 #4C228A #672EBB #8752D4

Accessibility & contrast

On white

11.03
#4C228A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#4C228A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C228A
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C228A#FFFFFF#000000##FFFFFF
##4C228A1.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8D
Deuteranopia (green-blind)
#003B88
Tritanopia (blue-blind)
#3B3D54
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4c228a;
/* rgb */ color: rgb(76, 34, 138);
/* oklch */ color: oklch(37.5% 0.161 296.1);
Tailwind
colors: {
  custom: {
    50: '#8461ad',
    500: '#4c228a',
    950: '#000000',
  },
}
SCSS
$custom: #4c228a;
$custom-light: #8461ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4c228a",
  "rgb": {
    "r": 76,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 264.231,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37505,
    "c": 0.16064,
    "h": 296.1
  },
  "luminance": 0.04516
}

Semantic roles & 50–950 ramp

primary
#4C228A
secondary
#8EB850
accent
#E444A3
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4C228A

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

Preview Lab → · Contrast checker → · Palette generator →

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