#4C2183#4C2183

#4C2183 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.8% C 0.154 H 298.5°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#4C2183
RGBrgb(76, 33, 131)
HSLhsl(266, 60%, 32%)
HSVhsv(266, 75%, 51%)
CMYKcmyk(42%, 74.8%, 0%, 48.6%)
CIE-LABlab(24.52, 40.93, -47.30)
CIE-LCHlch(24.52, 62.55, 310.87°)
OKLaboklab(36.76% 0.0733 -0.1351)
OKLCHoklch(36.76% 0.154 298.5)
XYZxyz(7.6200, 4.2628, 21.8897)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2183 #588321
analogous
#212783 #4C2183 #7D2183
triadic
#4C2183 #834C21 #21834C
tetradic
#4C2183 #832127 #588321 #21837D
square
#4C2183 #832127 #588321 #21837D
split-complementary
#4C2183 #837D21 #278321
monochromatic
#130821 #301552 #4C2183 #682DB4 #874CD2

Accessibility & contrast

On white

11.34
#4C2183 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C2183
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2183#FFFFFF#000000##FFFFFF
##4C21831.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A86
Deuteranopia (green-blind)
#003981
Tritanopia (blue-blind)
#3F3A50
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4c2183;
/* rgb */ color: rgb(76, 33, 131);
/* oklch */ color: oklch(36.8% 0.154 298.5);
Tailwind
colors: {
  custom: {
    50: '#8461a8',
    500: '#4c2183',
    950: '#000000',
  },
}
SCSS
$custom: #4c2183;
$custom-light: #8461a8;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2183",
  "rgb": {
    "r": 76,
    "g": 33,
    "b": 131
  },
  "hsl": {
    "h": 266.327,
    "s": 59.756,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36761,
    "c": 0.15373,
    "h": 298.5
  },
  "luminance": 0.04263
}

Semantic roles & 50–950 ramp

primary
#4C2183
secondary
#86B54B
accent
#E3459E
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4C2183

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

Preview Lab → · Contrast checker → · Palette generator →

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