#4C0F5C#4C0F5C

#4C0F5C is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.6% C 0.133 H 318.0°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#4C0F5C
RGBrgb(76, 15, 92)
HSLhsl(288, 72%, 21%)
HSVhsv(288, 84%, 36%)
CMYKcmyk(17.4%, 83.7%, 0%, 63.9%)
CIE-LABlab(18.59, 39.29, -31.69)
CIE-LCHlch(18.59, 50.48, 321.11°)
OKLaboklab(31.57% 0.0992 -0.0892)
OKLCHoklch(31.57% 0.133 318)
XYZxyz(5.0828, 2.6511, 10.3671)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C0F5C #1F5C0F
analogous
#250F5C #4C0F5C #5C0F45
triadic
#4C0F5C #5C4C0F #0F5C4C
tetradic
#4C0F5C #5C250F #1F5C0F #0F455C
square
#4C0F5C #5C250F #1F5C0F #0F455C
split-complementary
#4C0F5C #455C0F #0F5C25
monochromatic
#16041A #210627 #4C0F5C #771891 #A320C5

Accessibility & contrast

On white

13.72
#4C0F5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#4C0F5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C0F5C
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C0F5C#FFFFFF#000000##FFFFFF
##4C0F5C1.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295E
Deuteranopia (green-blind)
#122F5A
Tritanopia (blue-blind)
#4B2035
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4c0f5c;
/* rgb */ color: rgb(76, 15, 92);
/* oklch */ color: oklch(31.6% 0.133 318.0);
Tailwind
colors: {
  custom: {
    50: '#81568b',
    500: '#4c0f5c',
    950: '#000000',
  },
}
SCSS
$custom: #4c0f5c;
$custom-light: #81568b;
$custom-dark: #000000;
JSON
{
  "hex": "#4c0f5c",
  "rgb": {
    "r": 76,
    "g": 15,
    "b": 92
  },
  "hsl": {
    "h": 287.532,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.31571,
    "c": 0.13339,
    "h": 318
  },
  "luminance": 0.02651
}

Semantic roles & 50–950 ramp

primary
#4C0F5C
secondary
#469531
accent
#EF395F
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030C
muted
#7C787D

Preview Lab

Preview with #4C0F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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