#4C2DA5#4C2DA5

#4C2DA5 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.4% C 0.180 H 287.6°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#4C2DA5
RGBrgb(76, 45, 165)
HSLhsl(256, 57%, 41%)
HSVhsv(256, 73%, 65%)
CMYKcmyk(53.9%, 72.7%, 0%, 35.3%)
CIE-LABlab(29.74, 44.35, -59.71)
CIE-LCHlch(29.74, 74.38, 306.60°)
OKLaboklab(41.38% 0.0545 -0.1716)
OKLCHoklch(41.38% 0.18 287.6)
XYZxyz(10.7084, 6.1293, 36.2088)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2DA5 #86A52D
analogous
#2D4AA5 #4C2DA5 #882DA5
triadic
#4C2DA5 #A54C2D #2DA54C
tetradic
#4C2DA5 #A52D4A #86A52D #2DA588
square
#4C2DA5 #A52D4A #86A52D #2DA588
split-complementary
#4C2DA5 #A5882D #4AA52D
monochromatic
#201345 #362075 #4C2DA5 #6743CC #8E73D9

Accessibility & contrast

On white

9.43
#4C2DA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4C2DA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2DA5
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2DA5#FFFFFF#000000##FFFFFF
##4C2DA51.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A9
Deuteranopia (green-blind)
#0043A3
Tritanopia (blue-blind)
#284D66
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4c2da5;
/* rgb */ color: rgb(76, 45, 165);
/* oklch */ color: oklch(41.4% 0.180 287.6);
Tailwind
colors: {
  custom: {
    50: '#8769c1',
    500: '#4c2da5',
    950: '#000000',
  },
}
SCSS
$custom: #4c2da5;
$custom-light: #8769c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2da5",
  "rgb": {
    "r": 76,
    "g": 45,
    "b": 165
  },
  "hsl": {
    "h": 255.5,
    "s": 57.143,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41384,
    "c": 0.18007,
    "h": 287.6
  },
  "luminance": 0.0613
}

Semantic roles & 50–950 ramp

primary
#4C2DA5
secondary
#ABC16D
accent
#E047B9
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4C2DA5

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

Preview Lab → · Contrast checker → · Palette generator →

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