#4C2B8A#4C2B8A

#4C2B8A is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.7% C 0.149 H 294.3°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#4C2B8A
RGBrgb(76, 43, 138)
HSLhsl(261, 52%, 35%)
HSVhsv(261, 69%, 54%)
CMYKcmyk(44.9%, 68.8%, 0%, 45.9%)
CIE-LABlab(27.02, 37.58, -47.61)
CIE-LCHlch(27.02, 60.66, 308.28°)
OKLaboklab(38.72% 0.0614 -0.1361)
OKLCHoklch(38.72% 0.149 294.3)
XYZxyz(8.4306, 5.0990, 24.5798)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2B8A #698A2B
analogous
#2B398A #4C2B8A #7B2B8A
triadic
#4C2B8A #8A4C2B #2B8A4C
tetradic
#4C2B8A #8A2B39 #698A2B #2B8A7B
square
#4C2B8A #8A2B39 #698A2B #2B8A7B
split-complementary
#4C2B8A #8A7B2B #398A2B
monochromatic
#190E2D #321C5B #4C2B8A #663AB9 #8761CE

Accessibility & contrast

On white

10.40
#4C2B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C2B8A
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2B8A#FFFFFF#000000##FFFFFF
##4C2B8A1.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c2b8a;
/* rgb */ color: rgb(76, 43, 138);
/* oklch */ color: oklch(38.7% 0.149 294.3);
Tailwind
colors: {
  custom: {
    50: '#8467ad',
    500: '#4c2b8a',
    950: '#000000',
  },
}
SCSS
$custom: #4c2b8a;
$custom-light: #8467ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2b8a",
  "rgb": {
    "r": 76,
    "g": 43,
    "b": 138
  },
  "hsl": {
    "h": 260.842,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38721,
    "c": 0.14935,
    "h": 294.3
  },
  "luminance": 0.05099
}

Semantic roles & 50–950 ramp

primary
#4C2B8A
secondary
#96B45D
accent
#DC4CAA
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C2B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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