#4C0F4B#4C0F4B

#4C0F4B is a dark, moderate purple. Relative luminance 0.024; OKLCH L 30.3% C 0.118 H 328.7°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#4C0F4B
RGBrgb(76, 15, 75)
HSLhsl(301, 67%, 18%)
HSVhsv(301, 80%, 30%)
CMYKcmyk(0%, 80.3%, 1.3%, 70.2%)
CIE-LABlab(17.40, 35.87, -22.09)
CIE-LCHlch(17.40, 42.12, 328.37°)
OKLaboklab(30.34% 0.1006 -0.0611)
OKLCHoklch(30.34% 0.118 328.7)
XYZxyz(4.4213, 2.3865, 6.8830)
Luminance0.0239 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C0F4B #0F4C10
analogous
#2F0F4C #4C0F4B #4C0F2C
triadic
#4C0F4B #4B4C0F #0F4B4C
tetradic
#4C0F4B #4C2F0F #0F4C10 #0F2C4C
square
#4C0F4B #4C2F0F #0F4C10 #0F2C4C
split-complementary
#4C0F4B #2C4C0F #0F4C2F
monochromatic
#1A0519 #1A0519 #4C0F4B #7F197D #B223B0

Accessibility & contrast

On white

14.22
#4C0F4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#4C0F4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C0F4B
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C0F4B#FFFFFF#000000##FFFFFF
##4C0F4B1.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05264D
Deuteranopia (green-blind)
#202E49
Tritanopia (blue-blind)
#4F182C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #4c0f4b;
/* rgb */ color: rgb(76, 15, 75);
/* oklch */ color: oklch(30.3% 0.118 328.7);
Tailwind
colors: {
  custom: {
    50: '#81557d',
    500: '#4c0f4b',
    950: '#000000',
  },
}
SCSS
$custom: #4c0f4b;
$custom-light: #81557d;
$custom-dark: #000000;
JSON
{
  "hex": "#4c0f4b",
  "rgb": {
    "r": 76,
    "g": 15,
    "b": 75
  },
  "hsl": {
    "h": 300.984,
    "s": 67.033,
    "l": 17.843
  },
  "oklch": {
    "l": 0.30343,
    "c": 0.11772,
    "h": 328.7
  },
  "luminance": 0.02386
}

Semantic roles & 50–950 ramp

primary
#4C0F4B
secondary
#318632
accent
#EA413E
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #4C0F4B

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

Preview Lab → · Contrast checker → · Palette generator →

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