#4C0C5F#4C0C5F

#4C0C5F is a dark, vivid purple. Relative luminance 0.026; OKLCH L 31.6% C 0.139 H 316.6°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#4C0C5F
RGBrgb(76, 12, 95)
HSLhsl(286, 78%, 21%)
HSVhsv(286, 87%, 37%)
CMYKcmyk(20%, 87.4%, 0%, 62.7%)
CIE-LABlab(18.48, 40.92, -33.87)
CIE-LCHlch(18.48, 53.12, 320.39°)
OKLaboklab(31.57% 0.1012 -0.0955)
OKLCHoklch(31.57% 0.139 316.6)
XYZxyz(5.1772, 2.6259, 11.0584)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C0C5F #1F5F0C
analogous
#220C5F #4C0C5F #5F0C48
triadic
#4C0C5F #5F4C0C #0C5F4C
tetradic
#4C0C5F #5F220C #1F5F0C #0C485F
square
#4C0C5F #5F220C #1F5F0C #0C485F
split-complementary
#4C0C5F #485F0C #0C5F22
monochromatic
#16031B #210529 #4C0C5F #771395 #A31ACC

Accessibility & contrast

On white

13.77
#4C0C5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C0C5F
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C0C5F#FFFFFF#000000##FFFFFF
##4C0C5F1.0013.771.5313.77
#FFFFFF13.771.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002961
Deuteranopia (green-blind)
#0C2F5D
Tritanopia (blue-blind)
#4B2037
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4c0c5f;
/* rgb */ color: rgb(76, 12, 95);
/* oklch */ color: oklch(31.6% 0.139 316.6);
Tailwind
colors: {
  custom: {
    50: '#82558d',
    500: '#4c0c5f',
    950: '#000000',
  },
}
SCSS
$custom: #4c0c5f;
$custom-light: #82558d;
$custom-dark: #000000;
JSON
{
  "hex": "#4c0c5f",
  "rgb": {
    "r": 76,
    "g": 12,
    "b": 95
  },
  "hsl": {
    "h": 286.265,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.31568,
    "c": 0.13917,
    "h": 316.6
  },
  "luminance": 0.02626
}

Semantic roles & 50–950 ramp

primary
#4C0C5F
secondary
#46992D
accent
#F43460
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030C
muted
#7C787D

Preview Lab

Preview with #4C0C5F

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

Preview Lab → · Contrast checker → · Palette generator →

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