#4C2C8A#4C2C8A

#4C2C8A is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.9% C 0.148 H 294.1°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#4C2C8A
RGBrgb(76, 44, 138)
HSLhsl(260, 52%, 36%)
HSVhsv(260, 68%, 54%)
CMYKcmyk(44.9%, 68.1%, 0%, 45.9%)
CIE-LABlab(27.22, 37.01, -47.28)
CIE-LCHlch(27.22, 60.04, 308.06°)
OKLaboklab(38.87% 0.0603 -0.1351)
OKLCHoklch(38.87% 0.148 294.1)
XYZxyz(8.4674, 5.1726, 24.5921)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2C8A #6A8A2C
analogous
#2C3B8A #4C2C8A #7B2C8A
triadic
#4C2C8A #8A4C2C #2C8A4C
tetradic
#4C2C8A #8A2C3B #6A8A2C #2C8A7B
square
#4C2C8A #8A2C3B #6A8A2C #2C8A7B
split-complementary
#4C2C8A #8A7B2C #3B8A2C
monochromatic
#190E2D #321D5C #4C2C8A #663BB8 #8763CD

Accessibility & contrast

On white

10.32
#4C2C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4C2C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2C8A
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2C8A#FFFFFF#000000##FFFFFF
##4C2C8A1.0010.322.0310.32
#FFFFFF10.321.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418D
Deuteranopia (green-blind)
#003F88
Tritanopia (blue-blind)
#3B4257
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4c2c8a;
/* rgb */ color: rgb(76, 44, 138);
/* oklch */ color: oklch(38.9% 0.148 294.1);
Tailwind
colors: {
  custom: {
    50: '#8467ad',
    500: '#4c2c8a',
    950: '#000000',
  },
}
SCSS
$custom: #4c2c8a;
$custom-light: #8467ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2c8a",
  "rgb": {
    "r": 76,
    "g": 44,
    "b": 138
  },
  "hsl": {
    "h": 260.426,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.38869,
    "c": 0.14801,
    "h": 294.1
  },
  "luminance": 0.05173
}

Semantic roles & 50–950 ramp

primary
#4C2C8A
secondary
#97B45E
accent
#DB4DAB
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C2C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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