#4C0F5B#4C0F5B

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

Color values

HEX#4C0F5B
RGBrgb(76, 15, 91)
HSLhsl(288, 72%, 21%)
HSVhsv(288, 84%, 36%)
CMYKcmyk(16.5%, 83.5%, 0%, 64.3%)
CIE-LABlab(18.51, 39.08, -31.14)
CIE-LCHlch(18.51, 49.97, 321.44°)
OKLaboklab(31.49% 0.0994 -0.0876)
OKLCHoklch(31.49% 0.132 318.6)
XYZxyz(5.0394, 2.6337, 10.1384)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C0F5B #1E5B0F
analogous
#260F5B #4C0F5B #5B0F44
triadic
#4C0F5B #5B4C0F #0F5B4C
tetradic
#4C0F5B #5B260F #1E5B0F #0F445B
square
#4C0F5B #5B260F #1E5B0F #0F445B
split-complementary
#4C0F5B #445B0F #0F5B26
monochromatic
#16041A #200626 #4C0F5B #781890 #A420C4

Accessibility & contrast

On white

13.76
#4C0F5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C0F5B
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C0F5B#FFFFFF#000000##FFFFFF
##4C0F5B1.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295D
Deuteranopia (green-blind)
#142F59
Tritanopia (blue-blind)
#4C2035
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4c0f5b;
/* rgb */ color: rgb(76, 15, 91);
/* oklch */ color: oklch(31.5% 0.132 318.6);
Tailwind
colors: {
  custom: {
    50: '#81568a',
    500: '#4c0f5b',
    950: '#000000',
  },
}
SCSS
$custom: #4c0f5b;
$custom-light: #81568a;
$custom-dark: #000000;
JSON
{
  "hex": "#4c0f5b",
  "rgb": {
    "r": 76,
    "g": 15,
    "b": 91
  },
  "hsl": {
    "h": 288.158,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.31493,
    "c": 0.13244,
    "h": 318.6
  },
  "luminance": 0.02633
}

Semantic roles & 50–950 ramp

primary
#4C0F5B
secondary
#459531
accent
#EE395D
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030C
muted
#7C787D

Preview Lab

Preview with #4C0F5B

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

Preview Lab → · Contrast checker → · Palette generator →

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