#4C2085#4C2085

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

Color values

HEX#4C2085
RGBrgb(76, 32, 133)
HSLhsl(266, 61%, 32%)
HSVhsv(266, 76%, 52%)
CMYKcmyk(42.9%, 75.9%, 0%, 47.8%)
CIE-LABlab(24.52, 41.96, -48.55)
CIE-LCHlch(24.52, 64.17, 310.83°)
OKLaboklab(36.82% 0.0738 -0.1388)
OKLCHoklch(36.82% 0.157 298)
XYZxyz(7.7295, 4.2628, 22.6013)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2085 #598520
analogous
#202685 #4C2085 #7F2085
triadic
#4C2085 #854C20 #20854C
tetradic
#4C2085 #852026 #598520 #20857F
square
#4C2085 #852026 #598520 #20857F
split-complementary
#4C2085 #857F20 #268520
monochromatic
#140822 #301454 #4C2085 #682CB6 #874CD4

Accessibility & contrast

On white

11.34
#4C2085 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C2085
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2085#FFFFFF#000000##FFFFFF
##4C20851.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A88
Deuteranopia (green-blind)
#003983
Tritanopia (blue-blind)
#3E3A51
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4c2085;
/* rgb */ color: rgb(76, 32, 133);
/* oklch */ color: oklch(36.8% 0.157 298.0);
Tailwind
colors: {
  custom: {
    50: '#8460a9',
    500: '#4c2085',
    950: '#000000',
  },
}
SCSS
$custom: #4c2085;
$custom-light: #8460a9;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2085",
  "rgb": {
    "r": 76,
    "g": 32,
    "b": 133
  },
  "hsl": {
    "h": 266.139,
    "s": 61.212,
    "l": 32.353
  },
  "oklch": {
    "l": 0.36815,
    "c": 0.15723,
    "h": 298
  },
  "luminance": 0.04263
}

Semantic roles & 50–950 ramp

primary
#4C2085
secondary
#87B74A
accent
#E4439E
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4C2085

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

Preview Lab → · Contrast checker → · Palette generator →

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