#4C2B8B#4C2B8B

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

Color values

HEX#4C2B8B
RGBrgb(76, 43, 139)
HSLhsl(261, 53%, 36%)
HSVhsv(261, 69%, 55%)
CMYKcmyk(45.3%, 69.1%, 0%, 45.5%)
CIE-LABlab(27.10, 37.86, -48.10)
CIE-LCHlch(27.10, 61.22, 308.21°)
OKLaboklab(38.81% 0.0613 -0.1376)
OKLCHoklch(38.81% 0.151 294)
XYZxyz(8.5033, 5.1281, 24.9629)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2B8B #6A8B2B
analogous
#2B3A8B #4C2B8B #7C2B8B
triadic
#4C2B8B #8B4C2B #2B8B4C
tetradic
#4C2B8B #8B2B3A #6A8B2B #2B8B7C
square
#4C2B8B #8B2B3A #6A8B2B #2B8B7C
split-complementary
#4C2B8B #8B7C2B #3A8B2B
monochromatic
#190E2E #321D5C #4C2B8B #6639BA #8762CE

Accessibility & contrast

On white

10.37
#4C2B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C2B8B
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2B8B#FFFFFF#000000##FFFFFF
##4C2B8B1.0010.372.0310.37
#FFFFFF10.371.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418E
Deuteranopia (green-blind)
#003E89
Tritanopia (blue-blind)
#3A4257
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4c2b8b;
/* rgb */ color: rgb(76, 43, 139);
/* oklch */ color: oklch(38.8% 0.151 294.0);
Tailwind
colors: {
  custom: {
    50: '#8467ae',
    500: '#4c2b8b',
    950: '#000000',
  },
}
SCSS
$custom: #4c2b8b;
$custom-light: #8467ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2b8b",
  "rgb": {
    "r": 76,
    "g": 43,
    "b": 139
  },
  "hsl": {
    "h": 260.625,
    "s": 52.747,
    "l": 35.686
  },
  "oklch": {
    "l": 0.38805,
    "c": 0.15061,
    "h": 294
  },
  "luminance": 0.05128
}

Semantic roles & 50–950 ramp

primary
#4C2B8B
secondary
#97B55D
accent
#DC4CAA
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C2B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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