#4C299C#4C299C

#4C299C is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.0% C 0.174 H 290.2°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#4C299C
RGBrgb(76, 41, 156)
HSLhsl(258, 58%, 39%)
HSVhsv(258, 74%, 61%)
CMYKcmyk(51.3%, 73.7%, 0%, 38.8%)
CIE-LABlab(28.17, 43.83, -56.81)
CIE-LCHlch(28.17, 71.75, 307.66°)
OKLaboklab(40.03% 0.06 -0.1631)
OKLCHoklch(40.03% 0.174 290.2)
XYZxyz(9.7725, 5.5223, 31.9970)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C299C #799C29
analogous
#293F9C #4C299C #85299C
triadic
#4C299C #9C4C29 #299C4C
tetradic
#4C299C #9C293F #799C29 #299C85
square
#4C299C #9C293F #799C29 #299C85
split-complementary
#4C299C #9C8529 #3F9C29
monochromatic
#1D103B #341C6C #4C299C #6438CB #8A68D7

Accessibility & contrast

On white

9.98
#4C299C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#4C299C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C299C
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C299C#FFFFFF#000000##FFFFFF
##4C299C1.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459F
Deuteranopia (green-blind)
#00409A
Tritanopia (blue-blind)
#304860
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4c299c;
/* rgb */ color: rgb(76, 41, 156);
/* oklch */ color: oklch(40.0% 0.174 290.2);
Tailwind
colors: {
  custom: {
    50: '#8666ba',
    500: '#4c299c',
    950: '#000000',
  },
}
SCSS
$custom: #4c299c;
$custom-light: #8666ba;
$custom-dark: #000000;
JSON
{
  "hex": "#4c299c",
  "rgb": {
    "r": 76,
    "g": 41,
    "b": 156
  },
  "hsl": {
    "h": 258.261,
    "s": 58.376,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40027,
    "c": 0.17379,
    "h": 290.2
  },
  "luminance": 0.05523
}

Semantic roles & 50–950 ramp

primary
#4C299C
secondary
#A2BE63
accent
#E246B2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4C299C

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

Preview Lab → · Contrast checker → · Palette generator →

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