#4C0F57#4C0F57

#4C0F57 is a dark, vivid purple. Relative luminance 0.026; OKLCH L 31.2% C 0.129 H 320.9°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#4C0F57
RGBrgb(76, 15, 87)
HSLhsl(291, 71%, 20%)
HSVhsv(291, 83%, 34%)
CMYKcmyk(12.6%, 82.8%, 0%, 65.9%)
CIE-LABlab(18.22, 38.24, -28.94)
CIE-LCHlch(18.22, 47.96, 322.88°)
OKLaboklab(31.19% 0.0999 -0.0811)
OKLCHoklch(31.19% 0.129 320.9)
XYZxyz(4.8714, 2.5665, 9.2538)
Luminance0.0257 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C0F57 #1A570F
analogous
#280F57 #4C0F57 #570F3E
triadic
#4C0F57 #574C0F #0F574C
tetradic
#4C0F57 #57280F #1A570F #0F3E57
square
#4C0F57 #57280F #1A570F #0F3E57
split-complementary
#4C0F57 #3E570F #0F5728
monochromatic
#17051A #1E0623 #4C0F57 #7A188B #A721BF

Accessibility & contrast

On white

13.88
#4C0F57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#4C0F57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C0F57
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C0F57#FFFFFF#000000##FFFFFF
##4C0F571.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002859
Deuteranopia (green-blind)
#182F55
Tritanopia (blue-blind)
#4D1E33
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #4c0f57;
/* rgb */ color: rgb(76, 15, 87);
/* oklch */ color: oklch(31.2% 0.129 320.9);
Tailwind
colors: {
  custom: {
    50: '#815687',
    500: '#4c0f57',
    950: '#000000',
  },
}
SCSS
$custom: #4c0f57;
$custom-light: #815687;
$custom-dark: #000000;
JSON
{
  "hex": "#4c0f57",
  "rgb": {
    "r": 76,
    "g": 15,
    "b": 87
  },
  "hsl": {
    "h": 290.833,
    "s": 70.588,
    "l": 20
  },
  "oklch": {
    "l": 0.3119,
    "c": 0.12868,
    "h": 320.9
  },
  "luminance": 0.02566
}

Semantic roles & 50–950 ramp

primary
#4C0F57
secondary
#409131
accent
#ED3A56
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #4C0F57

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

Preview Lab → · Contrast checker → · Palette generator →

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