#4C2283#4C2283

#4C2283 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.9% C 0.153 H 298.3°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#4C2283
RGBrgb(76, 34, 131)
HSLhsl(266, 59%, 32%)
HSVhsv(266, 74%, 51%)
CMYKcmyk(42%, 74%, 0%, 48.6%)
CIE-LABlab(24.70, 40.43, -47.01)
CIE-LCHlch(24.70, 62.01, 310.70°)
OKLaboklab(36.89% 0.0723 -0.1343)
OKLCHoklch(36.89% 0.153 298.3)
XYZxyz(7.6482, 4.3191, 21.8991)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2283 #598322
analogous
#222983 #4C2283 #7C2283
triadic
#4C2283 #834C22 #22834C
tetradic
#4C2283 #832229 #598322 #22837C
square
#4C2283 #832229 #598322 #22837C
split-complementary
#4C2283 #837C22 #298322
monochromatic
#140922 #301552 #4C2283 #682FB4 #874ED1

Accessibility & contrast

On white

11.27
#4C2283 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4C2283 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2283
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2283#FFFFFF#000000##FFFFFF
##4C22831.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B86
Deuteranopia (green-blind)
#003A81
Tritanopia (blue-blind)
#3E3A50
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4c2283;
/* rgb */ color: rgb(76, 34, 131);
/* oklch */ color: oklch(36.9% 0.153 298.3);
Tailwind
colors: {
  custom: {
    50: '#8361a8',
    500: '#4c2283',
    950: '#000000',
  },
}
SCSS
$custom: #4c2283;
$custom-light: #8361a8;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2283",
  "rgb": {
    "r": 76,
    "g": 34,
    "b": 131
  },
  "hsl": {
    "h": 265.979,
    "s": 58.788,
    "l": 32.353
  },
  "oklch": {
    "l": 0.36887,
    "c": 0.15251,
    "h": 298.3
  },
  "luminance": 0.04319
}

Semantic roles & 50–950 ramp

primary
#4C2283
secondary
#87B44C
accent
#E2469E
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4C2283

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

Preview Lab → · Contrast checker → · Palette generator →

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