#4C2A8D#4C2A8D

#4C2A8D is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.8% C 0.154 H 293.7°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#4C2A8D
RGBrgb(76, 42, 141)
HSLhsl(261, 54%, 36%)
HSVhsv(261, 70%, 55%)
CMYKcmyk(46.1%, 70.2%, 0%, 44.7%)
CIE-LABlab(27.06, 38.99, -49.40)
CIE-LCHlch(27.06, 62.94, 308.28°)
OKLaboklab(38.83% 0.062 -0.1414)
OKLCHoklch(38.83% 0.154 293.7)
XYZxyz(8.6149, 5.1153, 25.7276)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2A8D #6B8D2A
analogous
#2A398D #4C2A8D #7D2A8D
triadic
#4C2A8D #8D4C2A #2A8D4C
tetradic
#4C2A8D #8D2A39 #6B8D2A #2A8D7D
square
#4C2A8D #8D2A39 #6B8D2A #2A8D7D
split-complementary
#4C2A8D #8D7D2A #398D2A
monochromatic
#190E2F #331C5E #4C2A8D #6538BC #8761D0

Accessibility & contrast

On white

10.38
#4C2A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4C2A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2A8D
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2A8D#FFFFFF#000000##FFFFFF
##4C2A8D1.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004190
Deuteranopia (green-blind)
#003E8B
Tritanopia (blue-blind)
#394258
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4c2a8d;
/* rgb */ color: rgb(76, 42, 141);
/* oklch */ color: oklch(38.8% 0.154 293.7);
Tailwind
colors: {
  custom: {
    50: '#8466af',
    500: '#4c2a8d',
    950: '#000000',
  },
}
SCSS
$custom: #4c2a8d;
$custom-light: #8466af;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2a8d",
  "rgb": {
    "r": 76,
    "g": 42,
    "b": 141
  },
  "hsl": {
    "h": 260.606,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.38831,
    "c": 0.15439,
    "h": 293.7
  },
  "luminance": 0.05116
}

Semantic roles & 50–950 ramp

primary
#4C2A8D
secondary
#97B65D
accent
#DD4AAB
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C2A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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