#4C2185#4C2185

#4C2185 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.9% C 0.156 H 297.8°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#4C2185
RGBrgb(76, 33, 133)
HSLhsl(266, 60%, 33%)
HSVhsv(266, 75%, 52%)
CMYKcmyk(42.9%, 75.2%, 0%, 47.8%)
CIE-LABlab(24.69, 41.47, -48.27)
CIE-LCHlch(24.69, 63.64, 310.67°)
OKLaboklab(36.94% 0.0728 -0.138)
OKLCHoklch(36.94% 0.156 297.8)
XYZxyz(7.7569, 4.3175, 22.6104)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2185 #5A8521
analogous
#212885 #4C2185 #7E2185
triadic
#4C2185 #854C21 #21854C
tetradic
#4C2185 #852128 #5A8521 #21857E
square
#4C2185 #852128 #5A8521 #21857E
split-complementary
#4C2185 #857E21 #288521
monochromatic
#140923 #301554 #4C2185 #682DB6 #874DD3

Accessibility & contrast

On white

11.27
#4C2185 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4C2185 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2185
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2185#FFFFFF#000000##FFFFFF
##4C21851.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B88
Deuteranopia (green-blind)
#003983
Tritanopia (blue-blind)
#3E3B51
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4c2185;
/* rgb */ color: rgb(76, 33, 133);
/* oklch */ color: oklch(36.9% 0.156 297.8);
Tailwind
colors: {
  custom: {
    50: '#8461a9',
    500: '#4c2185',
    950: '#000000',
  },
}
SCSS
$custom: #4c2185;
$custom-light: #8461a9;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2185",
  "rgb": {
    "r": 76,
    "g": 33,
    "b": 133
  },
  "hsl": {
    "h": 265.8,
    "s": 60.241,
    "l": 32.549
  },
  "oklch": {
    "l": 0.36937,
    "c": 0.15605,
    "h": 297.8
  },
  "luminance": 0.04318
}

Semantic roles & 50–950 ramp

primary
#4C2185
secondary
#88B64C
accent
#E3449F
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4C2185

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

Preview Lab → · Contrast checker → · Palette generator →

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