#4C2086#4C2086

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

Color values

HEX#4C2086
RGBrgb(76, 32, 134)
HSLhsl(266, 61%, 33%)
HSVhsv(266, 76%, 53%)
CMYKcmyk(43.3%, 76.1%, 0%, 47.5%)
CIE-LABlab(24.61, 42.23, -49.04)
CIE-LCHlch(24.61, 64.71, 310.73°)
OKLaboklab(36.9% 0.0735 -0.1403)
OKLCHoklch(36.9% 0.158 297.7)
XYZxyz(7.7990, 4.2906, 22.9669)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2086 #5A8620
analogous
#202786 #4C2086 #7F2086
triadic
#4C2086 #864C20 #20864C
tetradic
#4C2086 #862027 #5A8620 #20867F
square
#4C2086 #862027 #5A8620 #20867F
split-complementary
#4C2086 #867F20 #278620
monochromatic
#140823 #301455 #4C2086 #682CB7 #874CD4

Accessibility & contrast

On white

11.30
#4C2086 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C2086
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2086#FFFFFF#000000##FFFFFF
##4C20861.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B89
Deuteranopia (green-blind)
#003984
Tritanopia (blue-blind)
#3D3A51
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4c2086;
/* rgb */ color: rgb(76, 32, 134);
/* oklch */ color: oklch(36.9% 0.158 297.7);
Tailwind
colors: {
  custom: {
    50: '#8460aa',
    500: '#4c2086',
    950: '#000000',
  },
}
SCSS
$custom: #4c2086;
$custom-light: #8460aa;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2086",
  "rgb": {
    "r": 76,
    "g": 32,
    "b": 134
  },
  "hsl": {
    "h": 265.882,
    "s": 61.446,
    "l": 32.549
  },
  "oklch": {
    "l": 0.36904,
    "c": 0.15837,
    "h": 297.7
  },
  "luminance": 0.04291
}

Semantic roles & 50–950 ramp

primary
#4C2086
secondary
#88B74B
accent
#E5439F
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4C2086

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

Preview Lab → · Contrast checker → · Palette generator →

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