#4C2186#4C2186

#4C2186 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.157 H 297.5°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#4C2186
RGBrgb(76, 33, 134)
HSLhsl(266, 60%, 33%)
HSVhsv(266, 75%, 53%)
CMYKcmyk(43.3%, 75.4%, 0%, 47.5%)
CIE-LABlab(24.78, 41.74, -48.76)
CIE-LCHlch(24.78, 64.18, 310.57°)
OKLaboklab(37.03% 0.0726 -0.1394)
OKLCHoklch(37.03% 0.157 297.5)
XYZxyz(7.8263, 4.3453, 22.9760)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2186 #5B8621
analogous
#212886 #4C2186 #7F2186
triadic
#4C2186 #864C21 #21864C
tetradic
#4C2186 #862128 #5B8621 #21867F
square
#4C2186 #862128 #5B8621 #21867F
split-complementary
#4C2186 #867F21 #288621
monochromatic
#140924 #301555 #4C2186 #682DB7 #874ED3

Accessibility & contrast

On white

11.24
#4C2186 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4C2186 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2186
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2186#FFFFFF#000000##FFFFFF
##4C21861.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B89
Deuteranopia (green-blind)
#003A84
Tritanopia (blue-blind)
#3D3B51
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4c2186;
/* rgb */ color: rgb(76, 33, 134);
/* oklch */ color: oklch(37.0% 0.157 297.5);
Tailwind
colors: {
  custom: {
    50: '#8461aa',
    500: '#4c2186',
    950: '#000000',
  },
}
SCSS
$custom: #4c2186;
$custom-light: #8461aa;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2186",
  "rgb": {
    "r": 76,
    "g": 33,
    "b": 134
  },
  "hsl": {
    "h": 265.545,
    "s": 60.479,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37025,
    "c": 0.15719,
    "h": 297.5
  },
  "luminance": 0.04345
}

Semantic roles & 50–950 ramp

primary
#4C2186
secondary
#89B74C
accent
#E444A0
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4C2186

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

Preview Lab → · Contrast checker → · Palette generator →

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