#4C2A99#4C2A99

#4C2A99 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.9% C 0.169 H 290.7°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#4C2A99
RGBrgb(76, 42, 153)
HSLhsl(258, 57%, 38%)
HSVhsv(258, 73%, 60%)
CMYKcmyk(50.3%, 72.5%, 0%, 40%)
CIE-LABlab(28.09, 42.45, -55.11)
CIE-LCHlch(28.09, 69.56, 307.61°)
OKLaboklab(39.89% 0.0597 -0.1581)
OKLCHoklch(39.89% 0.169 290.7)
XYZxyz(9.5566, 5.4920, 30.6873)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2A99 #77992A
analogous
#2A4099 #4C2A99 #832A99
triadic
#4C2A99 #994C2A #2A994C
tetradic
#4C2A99 #992A40 #77992A #2A9983
square
#4C2A99 #992A40 #77992A #2A9983
split-complementary
#4C2A99 #99832A #40992A
monochromatic
#1C1039 #341D69 #4C2A99 #6438C8 #8968D6

Accessibility & contrast

On white

10.01
#4C2A99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C2A99
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2A99#FFFFFF#000000##FFFFFF
##4C2A991.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449C
Deuteranopia (green-blind)
#004097
Tritanopia (blue-blind)
#32475E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4c2a99;
/* rgb */ color: rgb(76, 42, 153);
/* oklch */ color: oklch(39.9% 0.169 290.7);
Tailwind
colors: {
  custom: {
    50: '#8667b8',
    500: '#4c2a99',
    950: '#000000',
  },
}
SCSS
$custom: #4c2a99;
$custom-light: #8667b8;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2a99",
  "rgb": {
    "r": 76,
    "g": 42,
    "b": 153
  },
  "hsl": {
    "h": 258.378,
    "s": 56.923,
    "l": 38.235
  },
  "oklch": {
    "l": 0.39887,
    "c": 0.16903,
    "h": 290.7
  },
  "luminance": 0.05492
}

Semantic roles & 50–950 ramp

primary
#4C2A99
secondary
#A1BC63
accent
#E048B1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4C2A99

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

Preview Lab → · Contrast checker → · Palette generator →

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