#4C299A#4C299A

#4C299A is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.8% C 0.171 H 290.6°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#4C299A
RGBrgb(76, 41, 154)
HSLhsl(259, 58%, 38%)
HSVhsv(259, 73%, 60%)
CMYKcmyk(50.6%, 73.4%, 0%, 39.6%)
CIE-LABlab(27.99, 43.26, -55.88)
CIE-LCHlch(27.99, 70.67, 307.75°)
OKLaboklab(39.84% 0.0604 -0.1604)
OKLCHoklch(39.84% 0.171 290.6)
XYZxyz(9.6045, 5.4551, 31.1125)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C299A #779A29
analogous
#293E9A #4C299A #84299A
triadic
#4C299A #9A4C29 #299A4C
tetradic
#4C299A #9A293E #779A29 #299A84
square
#4C299A #9A293E #779A29 #299A84
split-complementary
#4C299A #9A8429 #3E9A29
monochromatic
#1C0F39 #341C6A #4C299A #6437CA #8967D7

Accessibility & contrast

On white

10.04
#4C299A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#4C299A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C299A
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C299A#FFFFFF#000000##FFFFFF
##4C299A1.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449D
Deuteranopia (green-blind)
#003F98
Tritanopia (blue-blind)
#31475F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4c299a;
/* rgb */ color: rgb(76, 41, 154);
/* oklch */ color: oklch(39.8% 0.171 290.6);
Tailwind
colors: {
  custom: {
    50: '#8666b9',
    500: '#4c299a',
    950: '#000000',
  },
}
SCSS
$custom: #4c299a;
$custom-light: #8666b9;
$custom-dark: #000000;
JSON
{
  "hex": "#4c299a",
  "rgb": {
    "r": 76,
    "g": 41,
    "b": 154
  },
  "hsl": {
    "h": 258.584,
    "s": 57.949,
    "l": 38.235
  },
  "oklch": {
    "l": 0.39844,
    "c": 0.1714,
    "h": 290.6
  },
  "luminance": 0.05455
}

Semantic roles & 50–950 ramp

primary
#4C299A
secondary
#A1BD62
accent
#E147B1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4C299A

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

Preview Lab → · Contrast checker → · Palette generator →

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