#4C2157#4C2157

#4C2157 is a dark, moderate purple. Relative luminance 0.033; OKLCH L 33.4% C 0.102 H 319.0°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#4C2157
RGBrgb(76, 33, 87)
HSLhsl(288, 45%, 24%)
HSVhsv(288, 62%, 34%)
CMYKcmyk(12.6%, 62.1%, 0%, 65.9%)
CIE-LABlab(21.25, 29.77, -24.09)
CIE-LCHlch(21.25, 38.30, 321.02°)
OKLaboklab(33.38% 0.0773 -0.0671)
OKLCHoklch(33.38% 0.102 319)
XYZxyz(5.2444, 3.3125, 9.3781)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2157 #2C5721
analogous
#312157 #4C2157 #572147
triadic
#4C2157 #574C21 #21574C
tetradic
#4C2157 #573121 #2C5721 #214757
square
#4C2157 #573121 #2C5721 #214757
split-complementary
#4C2157 #475721 #215731
monochromatic
#130816 #25102B #4C2157 #733283 #9A43B0

Accessibility & contrast

On white

12.63
#4C2157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#4C2157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2157
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2157#FFFFFF#000000##FFFFFF
##4C21571.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153059
Deuteranopia (green-blind)
#243556
Tritanopia (blue-blind)
#4C2938
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4c2157;
/* rgb */ color: rgb(76, 33, 87);
/* oklch */ color: oklch(33.4% 0.102 319.0);
Tailwind
colors: {
  custom: {
    50: '#805f86',
    500: '#4c2157',
    950: '#000000',
  },
}
SCSS
$custom: #4c2157;
$custom-light: #805f86;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2157",
  "rgb": {
    "r": 76,
    "g": 33,
    "b": 87
  },
  "hsl": {
    "h": 287.778,
    "s": 45,
    "l": 23.529
  },
  "oklch": {
    "l": 0.33377,
    "c": 0.10238,
    "h": 319
  },
  "luminance": 0.03312
}

Semantic roles & 50–950 ramp

primary
#4C2157
secondary
#568B49
accent
#D5536E
background
#F7F5F8
surface
#EEE9EF
border
#C9C5CA
text
#0A050B
muted
#7C797C

Preview Lab

Preview with #4C2157

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

Preview Lab → · Contrast checker → · Palette generator →

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