#4C229B#4C229B

#4C229B is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.1% C 0.180 H 291.5°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#4C229B
RGBrgb(76, 34, 155)
HSLhsl(261, 64%, 37%)
HSVhsv(261, 78%, 61%)
CMYKcmyk(51%, 78.1%, 0%, 39.2%)
CIE-LABlab(26.87, 47.00, -58.34)
CIE-LCHlch(26.87, 74.92, 308.86°)
OKLaboklab(39.08% 0.0661 -0.1675)
OKLCHoklch(39.08% 0.18 291.5)
XYZxyz(9.4672, 5.0467, 31.4793)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C229B #719B22
analogous
#22359B #4C229B #88229B
triadic
#4C229B #9B4C22 #229B4C
tetradic
#4C229B #9B2235 #719B22 #229B88
square
#4C229B #9B2235 #719B22 #229B88
split-complementary
#4C229B #9B8822 #359B22
monochromatic
#1B0C37 #331769 #4C229B #652DCD #885CDB

Accessibility & contrast

On white

10.45
#4C229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4C229B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C229B
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C229B#FFFFFF#000000##FFFFFF
##4C229B1.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419E
Deuteranopia (green-blind)
#003D99
Tritanopia (blue-blind)
#31445E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4c229b;
/* rgb */ color: rgb(76, 34, 155);
/* oklch */ color: oklch(39.1% 0.180 291.5);
Tailwind
colors: {
  custom: {
    50: '#8762ba',
    500: '#4c229b',
    950: '#000000',
  },
}
SCSS
$custom: #4c229b;
$custom-light: #8762ba;
$custom-dark: #000000;
JSON
{
  "hex": "#4c229b",
  "rgb": {
    "r": 76,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 260.826,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.3908,
    "c": 0.18011,
    "h": 291.5
  },
  "luminance": 0.05047
}

Semantic roles & 50–950 ramp

primary
#4C229B
secondary
#9CC059
accent
#E741AD
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4C229B

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

Preview Lab → · Contrast checker → · Palette generator →

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