#4C0F5D#4C0F5D

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

Color values

HEX#4C0F5D
RGBrgb(76, 15, 93)
HSLhsl(287, 72%, 21%)
HSVhsv(287, 84%, 36%)
CMYKcmyk(18.3%, 83.9%, 0%, 63.5%)
CIE-LABlab(18.66, 39.50, -32.23)
CIE-LCHlch(18.66, 50.98, 320.78°)
OKLaboklab(31.65% 0.099 -0.0908)
OKLCHoklch(31.65% 0.134 317.5)
XYZxyz(5.1268, 2.6687, 10.5989)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C0F5D #205D0F
analogous
#250F5D #4C0F5D #5D0F47
triadic
#4C0F5D #5D4C0F #0F5D4C
tetradic
#4C0F5D #5D250F #205D0F #0F475D
square
#4C0F5D #5D250F #205D0F #0F475D
split-complementary
#4C0F5D #475D0F #0F5D25
monochromatic
#16041A #210628 #4C0F5D #771792 #A220C6

Accessibility & contrast

On white

13.69
#4C0F5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C0F5D
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C0F5D#FFFFFF#000000##FFFFFF
##4C0F5D1.0013.691.5313.69
#FFFFFF13.691.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5F
Deuteranopia (green-blind)
#112F5B
Tritanopia (blue-blind)
#4B2136
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4c0f5d;
/* rgb */ color: rgb(76, 15, 93);
/* oklch */ color: oklch(31.6% 0.134 317.5);
Tailwind
colors: {
  custom: {
    50: '#81568b',
    500: '#4c0f5d',
    950: '#000000',
  },
}
SCSS
$custom: #4c0f5d;
$custom-light: #81568b;
$custom-dark: #000000;
JSON
{
  "hex": "#4c0f5d",
  "rgb": {
    "r": 76,
    "g": 15,
    "b": 93
  },
  "hsl": {
    "h": 286.923,
    "s": 72.222,
    "l": 21.176
  },
  "oklch": {
    "l": 0.31649,
    "c": 0.13434,
    "h": 317.5
  },
  "luminance": 0.02668
}

Semantic roles & 50–950 ramp

primary
#4C0F5D
secondary
#479631
accent
#EF3961
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030C
muted
#7C787D

Preview Lab

Preview with #4C0F5D

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

Preview Lab → · Contrast checker → · Palette generator →

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