#4C0F56#4C0F56

#4C0F56 is a dark, vivid purple. Relative luminance 0.025; OKLCH L 31.1% C 0.128 H 321.5°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#4C0F56
RGBrgb(76, 15, 86)
HSLhsl(292, 70%, 20%)
HSVhsv(292, 83%, 34%)
CMYKcmyk(11.6%, 82.6%, 0%, 66.3%)
CIE-LABlab(18.14, 38.03, -28.38)
CIE-LCHlch(18.14, 47.46, 323.27°)
OKLaboklab(31.12% 0.1 -0.0795)
OKLCHoklch(31.12% 0.128 321.5)
XYZxyz(4.8308, 2.5503, 9.0401)
Luminance0.0255 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C0F56 #19560F
analogous
#280F56 #4C0F56 #560F3D
triadic
#4C0F56 #564C0F #0F564C
tetradic
#4C0F56 #56280F #19560F #0F3D56
square
#4C0F56 #56280F #19560F #0F3D56
split-complementary
#4C0F56 #3D560F #0F5628
monochromatic
#17051A #1E0622 #4C0F56 #7A188A #A821BE

Accessibility & contrast

On white

13.91
#4C0F56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C0F56
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C0F56#FFFFFF#000000##FFFFFF
##4C0F561.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002858
Deuteranopia (green-blind)
#192E54
Tritanopia (blue-blind)
#4D1D32
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #4c0f56;
/* rgb */ color: rgb(76, 15, 86);
/* oklch */ color: oklch(31.1% 0.128 321.5);
Tailwind
colors: {
  custom: {
    50: '#815686',
    500: '#4c0f56',
    950: '#000000',
  },
}
SCSS
$custom: #4c0f56;
$custom-light: #815686;
$custom-dark: #000000;
JSON
{
  "hex": "#4c0f56",
  "rgb": {
    "r": 76,
    "g": 15,
    "b": 86
  },
  "hsl": {
    "h": 291.549,
    "s": 70.297,
    "l": 19.804
  },
  "oklch": {
    "l": 0.31116,
    "c": 0.12775,
    "h": 321.5
  },
  "luminance": 0.0255
}

Semantic roles & 50–950 ramp

primary
#4C0F56
secondary
#3E9031
accent
#ED3B54
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #4C0F56

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

Preview Lab → · Contrast checker → · Palette generator →

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