#4C2A85#4C2A85

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

Color values

HEX#4C2A85
RGBrgb(76, 42, 133)
HSLhsl(262, 52%, 34%)
HSVhsv(262, 68%, 52%)
CMYKcmyk(42.9%, 68.4%, 0%, 47.8%)
CIE-LABlab(26.41, 36.71, -45.49)
CIE-LCHlch(26.41, 58.45, 308.91°)
OKLaboklab(38.16% 0.0633 -0.1299)
OKLCHoklch(38.16% 0.144 296)
XYZxyz(8.0410, 4.8857, 22.7051)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2A85 #63852A
analogous
#2A3585 #4C2A85 #7A2A85
triadic
#4C2A85 #854C2A #2A854C
tetradic
#4C2A85 #852A35 #63852A #2A857A
square
#4C2A85 #852A35 #63852A #2A857A
split-complementary
#4C2A85 #857A2A #35852A
monochromatic
#170D28 #311B56 #4C2A85 #6739B4 #875DCC

Accessibility & contrast

On white

10.62
#4C2A85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C2A85
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2A85#FFFFFF#000000##FFFFFF
##4C2A851.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F88
Deuteranopia (green-blind)
#003D83
Tritanopia (blue-blind)
#3D4054
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4c2a85;
/* rgb */ color: rgb(76, 42, 133);
/* oklch */ color: oklch(38.2% 0.144 296.0);
Tailwind
colors: {
  custom: {
    50: '#8366a9',
    500: '#4c2a85',
    950: '#000000',
  },
}
SCSS
$custom: #4c2a85;
$custom-light: #8366a9;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2a85",
  "rgb": {
    "r": 76,
    "g": 42,
    "b": 133
  },
  "hsl": {
    "h": 262.418,
    "s": 52,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38157,
    "c": 0.14446,
    "h": 296
  },
  "luminance": 0.04886
}

Semantic roles & 50–950 ramp

primary
#4C2A85
secondary
#91B259
accent
#DB4CA6
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C2A85

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

Preview Lab → · Contrast checker → · Palette generator →

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