#4C208B#4C208B

#4C208B is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.164 H 296.1°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#4C208B
RGBrgb(76, 32, 139)
HSLhsl(265, 63%, 34%)
HSVhsv(265, 77%, 55%)
CMYKcmyk(45.3%, 77%, 0%, 45.5%)
CIE-LABlab(25.06, 43.57, -51.43)
CIE-LCHlch(25.06, 67.41, 310.27°)
OKLaboklab(37.36% 0.0723 -0.1473)
OKLCHoklch(37.36% 0.164 296.1)
XYZxyz(8.1560, 4.4334, 24.8471)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C208B #5F8B20
analogous
#20298B #4C208B #81208B
triadic
#4C208B #8B4C20 #208B4C
tetradic
#4C208B #8B2029 #5F8B20 #208B81
square
#4C208B #8B2029 #5F8B20 #208B81
split-complementary
#4C208B #8B8120 #298B20
monochromatic
#160928 #311559 #4C208B #672BBD #874FD6

Accessibility & contrast

On white

11.13
#4C208B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#4C208B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C208B
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C208B#FFFFFF#000000##FFFFFF
##4C208B1.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003A89
Tritanopia (blue-blind)
#3B3C54
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4c208b;
/* rgb */ color: rgb(76, 32, 139);
/* oklch */ color: oklch(37.4% 0.164 296.1);
Tailwind
colors: {
  custom: {
    50: '#8560ae',
    500: '#4c208b',
    950: '#000000',
  },
}
SCSS
$custom: #4c208b;
$custom-light: #8560ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4c208b",
  "rgb": {
    "r": 76,
    "g": 32,
    "b": 139
  },
  "hsl": {
    "h": 264.673,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37356,
    "c": 0.16406,
    "h": 296.1
  },
  "luminance": 0.04434
}

Semantic roles & 50–950 ramp

primary
#4C208B
secondary
#8DBA4D
accent
#E642A2
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4C208B

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

Preview Lab → · Contrast checker → · Palette generator →

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