#4C2DA8#4C2DA8

#4C2DA8 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.7% C 0.184 H 287.0°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#4C2DA8
RGBrgb(76, 45, 168)
HSLhsl(255, 58%, 42%)
HSVhsv(255, 73%, 66%)
CMYKcmyk(54.8%, 73.2%, 0%, 34.1%)
CIE-LABlab(30.01, 45.23, -61.07)
CIE-LCHlch(30.01, 76.00, 306.53°)
OKLaboklab(41.66% 0.0538 -0.1756)
OKLCHoklch(41.66% 0.184 287)
XYZxyz(10.9847, 6.2398, 37.6638)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2DA8 #89A82D
analogous
#2D4CA8 #4C2DA8 #8A2DA8
triadic
#4C2DA8 #A84C2D #2DA84C
tetradic
#4C2DA8 #A82D4C #89A82D #2DA88A
square
#4C2DA8 #A82D4C #89A82D #2DA88A
split-complementary
#4C2DA8 #A88A2D #4CA82D
monochromatic
#201347 #362078 #4C2DA8 #6745CD #8F75DA

Accessibility & contrast

On white

9.34
#4C2DA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4C2DA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2DA8
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2DA8#FFFFFF#000000##FFFFFF
##4C2DA81.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAC
Deuteranopia (green-blind)
#0043A6
Tritanopia (blue-blind)
#254E68
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4c2da8;
/* rgb */ color: rgb(76, 45, 168);
/* oklch */ color: oklch(41.7% 0.184 287.0);
Tailwind
colors: {
  custom: {
    50: '#8869c3',
    500: '#4c2da8',
    950: '#000000',
  },
}
SCSS
$custom: #4c2da8;
$custom-light: #8869c3;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2da8",
  "rgb": {
    "r": 76,
    "g": 45,
    "b": 168
  },
  "hsl": {
    "h": 255.122,
    "s": 57.746,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41661,
    "c": 0.18368,
    "h": 287
  },
  "luminance": 0.0624
}

Semantic roles & 50–950 ramp

primary
#4C2DA8
secondary
#ADC26F
accent
#E147BA
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4C2DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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