#4C2182#4C2182

#4C2182 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.153 H 298.8°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#4C2182
RGBrgb(76, 33, 130)
HSLhsl(267, 60%, 32%)
HSVhsv(267, 75%, 51%)
CMYKcmyk(41.5%, 74.6%, 0%, 49%)
CIE-LABlab(24.44, 40.67, -46.81)
CIE-LCHlch(24.44, 62.01, 310.98°)
OKLaboklab(36.67% 0.0735 -0.1337)
OKLCHoklch(36.67% 0.153 298.8)
XYZxyz(7.5526, 4.2358, 21.5344)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2182 #578221
analogous
#212782 #4C2182 #7D2182
triadic
#4C2182 #824C21 #21824C
tetradic
#4C2182 #822127 #578221 #21827D
square
#4C2182 #822127 #578221 #21827D
split-complementary
#4C2182 #827D21 #278221
monochromatic
#130820 #2F1551 #4C2182 #692DB3 #874CD2

Accessibility & contrast

On white

11.37
#4C2182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4C2182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2182
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2182#FFFFFF#000000##FFFFFF
##4C21821.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.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: #4c2182;
/* rgb */ color: rgb(76, 33, 130);
/* oklch */ color: oklch(36.7% 0.153 298.8);
Tailwind
colors: {
  custom: {
    50: '#8360a7',
    500: '#4c2182',
    950: '#000000',
  },
}
SCSS
$custom: #4c2182;
$custom-light: #8360a7;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2182",
  "rgb": {
    "r": 76,
    "g": 33,
    "b": 130
  },
  "hsl": {
    "h": 266.598,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.36674,
    "c": 0.15258,
    "h": 298.8
  },
  "luminance": 0.04236
}

Semantic roles & 50–950 ramp

primary
#4C2182
secondary
#85B44A
accent
#E3459D
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4C2182

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

Preview Lab → · Contrast checker → · Palette generator →

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