#4C2D8A#4C2D8A

#4C2D8A is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.0% C 0.147 H 293.8°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#4C2D8A
RGBrgb(76, 45, 138)
HSLhsl(260, 51%, 36%)
HSVhsv(260, 67%, 54%)
CMYKcmyk(44.9%, 67.4%, 0%, 45.9%)
CIE-LABlab(27.43, 36.44, -46.94)
CIE-LCHlch(27.43, 59.43, 307.82°)
OKLaboklab(39.02% 0.0592 -0.1341)
OKLCHoklch(39.02% 0.147 293.8)
XYZxyz(8.5051, 5.2480, 24.6047)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2D8A #6B8A2D
analogous
#2D3C8A #4C2D8A #7A2D8A
triadic
#4C2D8A #8A4C2D #2D8A4C
tetradic
#4C2D8A #8A2D3C #6B8A2D #2D8A7A
square
#4C2D8A #8A2D3C #6B8A2D #2D8A7A
split-complementary
#4C2D8A #8A7A2D #3C8A2D
monochromatic
#190F2E #331E5C #4C2D8A #653CB8 #8765CD

Accessibility & contrast

On white

10.25
#4C2D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4C2D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2D8A
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2D8A#FFFFFF#000000##FFFFFF
##4C2D8A1.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428D
Deuteranopia (green-blind)
#003F88
Tritanopia (blue-blind)
#3B4357
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4c2d8a;
/* rgb */ color: rgb(76, 45, 138);
/* oklch */ color: oklch(39.0% 0.147 293.8);
Tailwind
colors: {
  custom: {
    50: '#8368ad',
    500: '#4c2d8a',
    950: '#000000',
  },
}
SCSS
$custom: #4c2d8a;
$custom-light: #8368ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2d8a",
  "rgb": {
    "r": 76,
    "g": 45,
    "b": 138
  },
  "hsl": {
    "h": 260,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.3902,
    "c": 0.14664,
    "h": 293.8
  },
  "luminance": 0.05248
}

Semantic roles & 50–950 ramp

primary
#4C2D8A
secondary
#97B360
accent
#DA4DAB
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C2D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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