#4C2C82#4C2C82

#4C2C82 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.2% C 0.138 H 296.4°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#4C2C82
RGBrgb(76, 44, 130)
HSLhsl(262, 49%, 34%)
HSVhsv(262, 66%, 51%)
CMYKcmyk(41.5%, 66.2%, 0%, 49%)
CIE-LABlab(26.59, 34.71, -43.31)
CIE-LCHlch(26.59, 55.50, 308.71°)
OKLaboklab(38.22% 0.0613 -0.1235)
OKLCHoklch(38.22% 0.138 296.4)
XYZxyz(7.9094, 4.9494, 21.6534)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2C82 #62822C
analogous
#2C3782 #4C2C82 #772C82
triadic
#4C2C82 #824C2C #2C824C
tetradic
#4C2C82 #822C37 #62822C #2C8277
square
#4C2C82 #822C37 #62822C #2C8277
split-complementary
#4C2C82 #82772C #37822C
monochromatic
#170D27 #311D54 #4C2C82 #673BB0 #875FC9

Accessibility & contrast

On white

10.55
#4C2C82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4C2C82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2C82
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2C82#FFFFFF#000000##FFFFFF
##4C2C821.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F85
Deuteranopia (green-blind)
#003E80
Tritanopia (blue-blind)
#3E4053
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4c2c82;
/* rgb */ color: rgb(76, 44, 130);
/* oklch */ color: oklch(38.2% 0.138 296.4);
Tailwind
colors: {
  custom: {
    50: '#8367a7',
    500: '#4c2c82',
    950: '#000000',
  },
}
SCSS
$custom: #4c2c82;
$custom-light: #8367a7;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2c82",
  "rgb": {
    "r": 76,
    "g": 44,
    "b": 130
  },
  "hsl": {
    "h": 262.326,
    "s": 49.425,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38216,
    "c": 0.13784,
    "h": 296.4
  },
  "luminance": 0.0495
}

Semantic roles & 50–950 ramp

primary
#4C2C82
secondary
#90AF5B
accent
#D94FA6
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4C2C82

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

Preview Lab → · Contrast checker → · Palette generator →

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