#4C229D#4C229D

#4C229D is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.182 H 291.0°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#4C229D
RGBrgb(76, 34, 157)
HSLhsl(260, 64%, 37%)
HSVhsv(260, 78%, 62%)
CMYKcmyk(51.6%, 78.3%, 0%, 38.4%)
CIE-LABlab(27.06, 47.55, -59.25)
CIE-LCHlch(27.06, 75.97, 308.75°)
OKLaboklab(39.27% 0.0655 -0.1702)
OKLCHoklch(39.27% 0.182 291)
XYZxyz(9.6366, 5.1145, 32.3712)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C229D #739D22
analogous
#22359D #4C229D #8A229D
triadic
#4C229D #9D4C22 #229D4C
tetradic
#4C229D #9D2235 #739D22 #229D8A
square
#4C229D #9D2235 #739D22 #229D8A
split-complementary
#4C229D #9D8A22 #359D22
monochromatic
#1B0C38 #34176B #4C229D #642DCF #895DDC

Accessibility & contrast

On white

10.38
#4C229D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4C229D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C229D
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C229D#FFFFFF#000000##FFFFFF
##4C229D1.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A0
Deuteranopia (green-blind)
#003D9B
Tritanopia (blue-blind)
#30455F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4c229d;
/* rgb */ color: rgb(76, 34, 157);
/* oklch */ color: oklch(39.3% 0.182 291.0);
Tailwind
colors: {
  custom: {
    50: '#8762bb',
    500: '#4c229d',
    950: '#000000',
  },
}
SCSS
$custom: #4c229d;
$custom-light: #8762bb;
$custom-dark: #000000;
JSON
{
  "hex": "#4c229d",
  "rgb": {
    "r": 76,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 260.488,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39271,
    "c": 0.18238,
    "h": 291
  },
  "luminance": 0.05115
}

Semantic roles & 50–950 ramp

primary
#4C229D
secondary
#9EC15A
accent
#E740AE
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4C229D

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

Preview Lab → · Contrast checker → · Palette generator →

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