#4C2280#4C2280

#4C2280 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.149 H 299.3°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#4C2280
RGBrgb(76, 34, 128)
HSLhsl(267, 58%, 32%)
HSVhsv(267, 73%, 50%)
CMYKcmyk(40.6%, 73.4%, 0%, 49.8%)
CIE-LABlab(24.45, 39.62, -45.53)
CIE-LCHlch(24.45, 60.36, 311.03°)
OKLaboklab(36.63% 0.0729 -0.13)
OKLCHoklch(36.63% 0.149 299.3)
XYZxyz(7.4478, 4.2390, 20.8437)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2280 #568022
analogous
#222780 #4C2280 #7B2280
triadic
#4C2280 #804C22 #22804C
tetradic
#4C2280 #802227 #568022 #22807B
square
#4C2280 #802227 #568022 #22807B
split-complementary
#4C2280 #807B22 #278022
monochromatic
#13081F #2F1550 #4C2280 #692FB0 #874DD0

Accessibility & contrast

On white

11.36
#4C2280 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C2280
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2280#FFFFFF#000000##FFFFFF
##4C22801.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A83
Deuteranopia (green-blind)
#00397E
Tritanopia (blue-blind)
#40394E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4c2280;
/* rgb */ color: rgb(76, 34, 128);
/* oklch */ color: oklch(36.6% 0.149 299.3);
Tailwind
colors: {
  custom: {
    50: '#8361a6',
    500: '#4c2280',
    950: '#000000',
  },
}
SCSS
$custom: #4c2280;
$custom-light: #8361a6;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2280",
  "rgb": {
    "r": 76,
    "g": 34,
    "b": 128
  },
  "hsl": {
    "h": 266.809,
    "s": 58.025,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36628,
    "c": 0.149,
    "h": 299.3
  },
  "luminance": 0.04239
}

Semantic roles & 50–950 ramp

primary
#4C2280
secondary
#84B24B
accent
#E1479C
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4C2280

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

Preview Lab → · Contrast checker → · Palette generator →

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