#4C228F#4C228F

#4C228F is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.0% C 0.166 H 294.7°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#4C228F
RGBrgb(76, 34, 143)
HSLhsl(263, 62%, 35%)
HSVhsv(263, 76%, 56%)
CMYKcmyk(46.9%, 76.2%, 0%, 43.9%)
CIE-LABlab(25.75, 43.70, -52.78)
CIE-LCHlch(25.75, 68.52, 309.63°)
OKLaboklab(37.96% 0.0694 -0.1512)
OKLCHoklch(37.96% 0.166 294.7)
XYZxyz(8.5091, 4.6635, 26.4331)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C228F #658F22
analogous
#222F8F #4C228F #83228F
triadic
#4C228F #8F4C22 #228F4C
tetradic
#4C228F #8F222F #658F22 #228F83
square
#4C228F #8F222F #658F22 #228F83
split-complementary
#4C228F #8F8322 #2F8F22
monochromatic
#170A2C #32165E #4C228F #662EC0 #8755D7

Accessibility & contrast

On white

10.87
#4C228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C228F
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C228F#FFFFFF#000000##FFFFFF
##4C228F1.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#003B8D
Tritanopia (blue-blind)
#393F57
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4c228f;
/* rgb */ color: rgb(76, 34, 143);
/* oklch */ color: oklch(38.0% 0.166 294.7);
Tailwind
colors: {
  custom: {
    50: '#8562b1',
    500: '#4c228f',
    950: '#000000',
  },
}
SCSS
$custom: #4c228f;
$custom-light: #8562b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c228f",
  "rgb": {
    "r": 76,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 263.119,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.37958,
    "c": 0.16642,
    "h": 294.7
  },
  "luminance": 0.04664
}

Semantic roles & 50–950 ramp

primary
#4C228F
secondary
#92BA52
accent
#E543A6
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4C228F

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

Preview Lab → · Contrast checker → · Palette generator →

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