#4C2B7A#4C2B7A

#4C2B7A is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.4% C 0.129 H 299.3°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#4C2B7A
RGBrgb(76, 43, 122)
HSLhsl(265, 48%, 32%)
HSVhsv(265, 65%, 48%)
CMYKcmyk(37.7%, 64.8%, 0%, 52.2%)
CIE-LABlab(25.77, 33.03, -39.59)
CIE-LCHlch(25.77, 51.56, 309.84°)
OKLaboklab(37.43% 0.0632 -0.1125)
OKLCHoklch(37.43% 0.129 299.3)
XYZxyz(7.3564, 4.6693, 18.9223)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2B7A #597A2B
analogous
#2B327A #4C2B7A #732B7A
triadic
#4C2B7A #7A4C2B #2B7A4C
tetradic
#4C2B7A #7A2B32 #597A2B #2B7A73
square
#4C2B7A #7A2B32 #597A2B #2B7A73
split-complementary
#4C2B7A #7A732B #327A2B
monochromatic
#140B1F #301B4D #4C2B7A #683BA7 #875AC5

Accessibility & contrast

On white

10.86
#4C2B7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#4C2B7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2B7A
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2B7A#FFFFFF#000000##FFFFFF
##4C2B7A1.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7C
Deuteranopia (green-blind)
#0A3C78
Tritanopia (blue-blind)
#423C4E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4c2b7a;
/* rgb */ color: rgb(76, 43, 122);
/* oklch */ color: oklch(37.4% 0.129 299.3);
Tailwind
colors: {
  custom: {
    50: '#8266a1',
    500: '#4c2b7a',
    950: '#000000',
  },
}
SCSS
$custom: #4c2b7a;
$custom-light: #8266a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2b7a",
  "rgb": {
    "r": 76,
    "g": 43,
    "b": 122
  },
  "hsl": {
    "h": 265.063,
    "s": 47.879,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37431,
    "c": 0.12906,
    "h": 299.3
  },
  "luminance": 0.04669
}

Semantic roles & 50–950 ramp

primary
#4C2B7A
secondary
#87AB56
accent
#D7509F
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4C2B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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