#4C2A86#4C2A86

#4C2A86 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.2% C 0.146 H 295.7°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#4C2A86
RGBrgb(76, 42, 134)
HSLhsl(262, 52%, 35%)
HSVhsv(262, 69%, 53%)
CMYKcmyk(43.3%, 68.7%, 0%, 47.5%)
CIE-LABlab(26.49, 36.99, -45.98)
CIE-LCHlch(26.49, 59.01, 308.82°)
OKLaboklab(38.24% 0.0631 -0.1313)
OKLCHoklch(38.24% 0.146 295.7)
XYZxyz(8.1104, 4.9135, 23.0707)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2A86 #64862A
analogous
#2A3686 #4C2A86 #7A2A86
triadic
#4C2A86 #864C2A #2A864C
tetradic
#4C2A86 #862A36 #64862A #2A867A
square
#4C2A86 #862A36 #64862A #2A867A
split-complementary
#4C2A86 #867A2A #36862A
monochromatic
#170D29 #321B57 #4C2A86 #6639B5 #875ECD

Accessibility & contrast

On white

10.59
#4C2A86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4C2A86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2A86
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2A86#FFFFFF#000000##FFFFFF
##4C2A861.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F89
Deuteranopia (green-blind)
#003D84
Tritanopia (blue-blind)
#3D4054
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4c2a86;
/* rgb */ color: rgb(76, 42, 134);
/* oklch */ color: oklch(38.2% 0.146 295.7);
Tailwind
colors: {
  custom: {
    50: '#8366aa',
    500: '#4c2a86',
    950: '#000000',
  },
}
SCSS
$custom: #4c2a86;
$custom-light: #8366aa;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2a86",
  "rgb": {
    "r": 76,
    "g": 42,
    "b": 134
  },
  "hsl": {
    "h": 262.174,
    "s": 52.273,
    "l": 34.51
  },
  "oklch": {
    "l": 0.3824,
    "c": 0.1457,
    "h": 295.7
  },
  "luminance": 0.04914
}

Semantic roles & 50–950 ramp

primary
#4C2A86
secondary
#91B25A
accent
#DC4CA7
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C2A86

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

Preview Lab → · Contrast checker → · Palette generator →

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