#4C2099#4C2099

#4C2099 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.180 H 292.3°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#4C2099
RGBrgb(76, 32, 153)
HSLhsl(262, 65%, 36%)
HSVhsv(262, 79%, 60%)
CMYKcmyk(50.3%, 79.1%, 0%, 40%)
CIE-LABlab(26.36, 47.37, -57.95)
CIE-LCHlch(26.36, 74.84, 309.26°)
OKLaboklab(38.67% 0.0683 -0.1664)
OKLCHoklch(38.67% 0.18 292.3)
XYZxyz(9.2452, 4.8691, 30.5835)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2099 #6D9920
analogous
#203199 #4C2099 #892099
triadic
#4C2099 #994C20 #20994C
tetradic
#4C2099 #992031 #6D9920 #209989
square
#4C2099 #992031 #6D9920 #209989
split-complementary
#4C2099 #998920 #319920
monochromatic
#1A0B34 #331566 #4C2099 #652BCC #8857DC

Accessibility & contrast

On white

10.64
#4C2099 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#4C2099 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2099
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2099#FFFFFF#000000##FFFFFF
##4C20991.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409C
Deuteranopia (green-blind)
#003C97
Tritanopia (blue-blind)
#33425C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4c2099;
/* rgb */ color: rgb(76, 32, 153);
/* oklch */ color: oklch(38.7% 0.180 292.3);
Tailwind
colors: {
  custom: {
    50: '#8761b8',
    500: '#4c2099',
    950: '#000000',
  },
}
SCSS
$custom: #4c2099;
$custom-light: #8761b8;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2099",
  "rgb": {
    "r": 76,
    "g": 32,
    "b": 153
  },
  "hsl": {
    "h": 261.818,
    "s": 65.405,
    "l": 36.275
  },
  "oklch": {
    "l": 0.38666,
    "c": 0.17985,
    "h": 292.3
  },
  "luminance": 0.04869
}

Semantic roles & 50–950 ramp

primary
#4C2099
secondary
#99C055
accent
#E83FAB
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4C2099

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

Preview Lab → · Contrast checker → · Palette generator →

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