#4C299D#4C299D

#4C299D is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.1% C 0.175 H 290.0°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#4C299D
RGBrgb(76, 41, 157)
HSLhsl(258, 59%, 39%)
HSVhsv(258, 74%, 62%)
CMYKcmyk(51.6%, 73.9%, 0%, 38.4%)
CIE-LABlab(28.26, 44.12, -57.27)
CIE-LCHlch(28.26, 72.29, 307.61°)
OKLaboklab(40.12% 0.0597 -0.1645)
OKLCHoklch(40.12% 0.175 290)
XYZxyz(9.8575, 5.5563, 32.4448)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C299D #7A9D29
analogous
#29409D #4C299D #86299D
triadic
#4C299D #9D4C29 #299D4C
tetradic
#4C299D #9D2940 #7A9D29 #299D86
square
#4C299D #9D2940 #7A9D29 #299D86
split-complementary
#4C299D #9D8629 #409D29
monochromatic
#1D103C #351C6C #4C299D #6438CB #8A69D8

Accessibility & contrast

On white

9.95
#4C299D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#4C299D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C299D
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C299D#FFFFFF#000000##FFFFFF
##4C299D1.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A0
Deuteranopia (green-blind)
#00409B
Tritanopia (blue-blind)
#2F4860
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4c299d;
/* rgb */ color: rgb(76, 41, 157);
/* oklch */ color: oklch(40.1% 0.175 290.0);
Tailwind
colors: {
  custom: {
    50: '#8666bb',
    500: '#4c299d',
    950: '#000000',
  },
}
SCSS
$custom: #4c299d;
$custom-light: #8666bb;
$custom-dark: #000000;
JSON
{
  "hex": "#4c299d",
  "rgb": {
    "r": 76,
    "g": 41,
    "b": 157
  },
  "hsl": {
    "h": 258.103,
    "s": 58.586,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40119,
    "c": 0.17498,
    "h": 290
  },
  "luminance": 0.05557
}

Semantic roles & 50–950 ramp

primary
#4C299D
secondary
#A3BE64
accent
#E246B3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4C299D

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

Preview Lab → · Contrast checker → · Palette generator →

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