#4C0F5A#4C0F5A

#4C0F5A is a dark, vivid purple. Relative luminance 0.026; OKLCH L 31.4% C 0.132 H 319.2°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).

Color values

HEX#4C0F5A
RGBrgb(76, 15, 90)
HSLhsl(289, 71%, 21%)
HSVhsv(289, 83%, 35%)
CMYKcmyk(15.6%, 83.3%, 0%, 64.7%)
CIE-LABlab(18.44, 38.86, -30.60)
CIE-LCHlch(18.44, 49.46, 321.79°)
OKLaboklab(31.42% 0.0995 -0.086)
OKLCHoklch(31.42% 0.132 319.2)
XYZxyz(4.9965, 2.6166, 9.9127)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C0F5A #1D5A0F
analogous
#260F5A #4C0F5A #5A0F42
triadic
#4C0F5A #5A4C0F #0F5A4C
tetradic
#4C0F5A #5A260F #1D5A0F #0F425A
square
#4C0F5A #5A260F #1D5A0F #0F425A
split-complementary
#4C0F5A #425A0F #0F5A26
monochromatic
#16041A #200626 #4C0F5A #78188E #A520C3

Accessibility & contrast

On white

13.79
#4C0F5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#4C0F5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C0F5A
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C0F5A#FFFFFF#000000##FFFFFF
##4C0F5A1.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295C
Deuteranopia (green-blind)
#152F58
Tritanopia (blue-blind)
#4C1F34
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4c0f5a;
/* rgb */ color: rgb(76, 15, 90);
/* oklch */ color: oklch(31.4% 0.132 319.2);
Tailwind
colors: {
  custom: {
    50: '#815689',
    500: '#4c0f5a',
    950: '#000000',
  },
}
SCSS
$custom: #4c0f5a;
$custom-light: #815689;
$custom-dark: #000000;
JSON
{
  "hex": "#4c0f5a",
  "rgb": {
    "r": 76,
    "g": 15,
    "b": 90
  },
  "hsl": {
    "h": 288.8,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.31417,
    "c": 0.1315,
    "h": 319.2
  },
  "luminance": 0.02616
}

Semantic roles & 50–950 ramp

primary
#4C0F5A
secondary
#449431
accent
#EE3A5B
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #4C0F5A

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

Preview Lab → · Contrast checker → · Palette generator →

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