#4C2082#4C2082

#4C2082 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.5% C 0.154 H 299.0°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#4C2082
RGBrgb(76, 32, 130)
HSLhsl(267, 60%, 32%)
HSVhsv(267, 75%, 51%)
CMYKcmyk(41.5%, 75.4%, 0%, 49%)
CIE-LABlab(24.26, 41.16, -47.09)
CIE-LCHlch(24.26, 62.54, 311.15°)
OKLaboklab(36.55% 0.0745 -0.1345)
OKLCHoklch(36.55% 0.154 299)
XYZxyz(7.5252, 4.1811, 21.5253)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2082 #568220
analogous
#202582 #4C2082 #7D2082
triadic
#4C2082 #824C20 #20824C
tetradic
#4C2082 #822025 #568220 #20827D
square
#4C2082 #822025 #568220 #20827D
split-complementary
#4C2082 #827D20 #258220
monochromatic
#130820 #2F1451 #4C2082 #692CB3 #874AD2

Accessibility & contrast

On white

11.44
#4C2082 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#4C2082 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2082
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2082#FFFFFF#000000##FFFFFF
##4C20821.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A85
Deuteranopia (green-blind)
#003980
Tritanopia (blue-blind)
#3F394F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4c2082;
/* rgb */ color: rgb(76, 32, 130);
/* oklch */ color: oklch(36.5% 0.154 299.0);
Tailwind
colors: {
  custom: {
    50: '#8360a7',
    500: '#4c2082',
    950: '#000000',
  },
}
SCSS
$custom: #4c2082;
$custom-light: #8360a7;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2082",
  "rgb": {
    "r": 76,
    "g": 32,
    "b": 130
  },
  "hsl": {
    "h": 266.939,
    "s": 60.494,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3655,
    "c": 0.15379,
    "h": 299
  },
  "luminance": 0.04181
}

Semantic roles & 50–950 ramp

primary
#4C2082
secondary
#84B549
accent
#E4449C
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4C2082

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

Preview Lab → · Contrast checker → · Palette generator →

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