#4C2DA9#4C2DA9

#4C2DA9 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.8% C 0.185 H 286.8°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#4C2DA9
RGBrgb(76, 45, 169)
HSLhsl(255, 58%, 42%)
HSVhsv(255, 73%, 66%)
CMYKcmyk(55%, 73.4%, 0%, 33.7%)
CIE-LABlab(30.10, 45.52, -61.52)
CIE-LCHlch(30.10, 76.53, 306.50°)
OKLaboklab(41.75% 0.0536 -0.1769)
OKLCHoklch(41.75% 0.185 286.8)
XYZxyz(11.0782, 6.2773, 38.1563)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2DA9 #8AA92D
analogous
#2D4CA9 #4C2DA9 #8A2DA9
triadic
#4C2DA9 #A94C2D #2DA94C
tetradic
#4C2DA9 #A92D4C #8AA92D #2DA98A
square
#4C2DA9 #A92D4C #8AA92D #2DA98A
split-complementary
#4C2DA9 #A98A2D #4CA92D
monochromatic
#211348 #362079 #4C2DA9 #6846CE #8F76DA

Accessibility & contrast

On white

9.31
#4C2DA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#4C2DA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2DA9
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2DA9#FFFFFF#000000##FFFFFF
##4C2DA91.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAD
Deuteranopia (green-blind)
#0043A7
Tritanopia (blue-blind)
#244F68
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4c2da9;
/* rgb */ color: rgb(76, 45, 169);
/* oklch */ color: oklch(41.8% 0.185 286.8);
Tailwind
colors: {
  custom: {
    50: '#8869c4',
    500: '#4c2da9',
    950: '#000000',
  },
}
SCSS
$custom: #4c2da9;
$custom-light: #8869c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2da9",
  "rgb": {
    "r": 76,
    "g": 45,
    "b": 169
  },
  "hsl": {
    "h": 255,
    "s": 57.944,
    "l": 41.961
  },
  "oklch": {
    "l": 0.41754,
    "c": 0.18488,
    "h": 286.8
  },
  "luminance": 0.06278
}

Semantic roles & 50–950 ramp

primary
#4C2DA9
secondary
#AEC26F
accent
#E147BB
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4C2DA9

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

Preview Lab → · Contrast checker → · Palette generator →

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