#4C2154#4C2154

#4C2154 is a dark, moderate purple. Relative luminance 0.033; OKLCH L 33.2% C 0.099 H 321.1°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#4C2154
RGBrgb(76, 33, 84)
HSLhsl(291, 44%, 23%)
HSVhsv(291, 61%, 33%)
CMYKcmyk(9.5%, 60.7%, 0%, 67.1%)
CIE-LABlab(21.07, 29.09, -22.37)
CIE-LCHlch(21.07, 36.70, 322.43°)
OKLaboklab(33.19% 0.0771 -0.0621)
OKLCHoklch(33.19% 0.099 321.1)
XYZxyz(5.1244, 3.2645, 8.7460)
Luminance0.0326 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2154 #295421
analogous
#322154 #4C2154 #542142
triadic
#4C2154 #544C21 #21544C
tetradic
#4C2154 #543221 #295421 #214254
square
#4C2154 #543221 #295421 #214254
split-complementary
#4C2154 #425421 #215432
monochromatic
#140916 #241028 #4C2154 #743280 #9C44AC

Accessibility & contrast

On white

12.71
#4C2154 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#4C2154 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2154
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2154#FFFFFF#000000##FFFFFF
##4C21541.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183056
Deuteranopia (green-blind)
#263453
Tritanopia (blue-blind)
#4D2837
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4c2154;
/* rgb */ color: rgb(76, 33, 84);
/* oklch */ color: oklch(33.2% 0.099 321.1);
Tailwind
colors: {
  custom: {
    50: '#805f84',
    500: '#4c2154',
    950: '#000000',
  },
}
SCSS
$custom: #4c2154;
$custom-light: #805f84;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2154",
  "rgb": {
    "r": 76,
    "g": 33,
    "b": 84
  },
  "hsl": {
    "h": 290.588,
    "s": 43.59,
    "l": 22.941
  },
  "oklch": {
    "l": 0.33186,
    "c": 0.09898,
    "h": 321.1
  },
  "luminance": 0.03264
}

Semantic roles & 50–950 ramp

primary
#4C2154
secondary
#538849
accent
#D35468
background
#F7F5F8
surface
#EEE9EF
border
#C9C5CA
text
#0A050B
muted
#7C797C

Preview Lab

Preview with #4C2154

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

Preview Lab → · Contrast checker → · Palette generator →

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