#4C0F47#4C0F47

#4C0F47 is a dark, moderate purple. Relative luminance 0.023; OKLCH L 30.1% C 0.114 H 331.6°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#4C0F47
RGBrgb(76, 15, 71)
HSLhsl(305, 67%, 18%)
HSVhsv(305, 80%, 30%)
CMYKcmyk(0%, 80.3%, 6.6%, 70.2%)
CIE-LABlab(17.15, 35.13, -19.73)
CIE-LCHlch(17.15, 40.29, 330.68°)
OKLaboklab(30.08% 0.1005 -0.0543)
OKLCHoklch(30.08% 0.114 331.6)
XYZxyz(4.2886, 2.3334, 6.1845)
Luminance0.0233 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C0F47 #0F4C14
analogous
#320F4C #4C0F47 #4C0F28
triadic
#4C0F47 #474C0F #0F474C
tetradic
#4C0F47 #4C320F #0F4C14 #0F284C
square
#4C0F47 #4C320F #0F4C14 #0F284C
split-complementary
#4C0F47 #284C0F #0F4C32
monochromatic
#1A0518 #1A0518 #4C0F47 #7F1977 #B223A6

Accessibility & contrast

On white

14.32
#4C0F47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#4C0F47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C0F47
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C0F47#FFFFFF#000000##FFFFFF
##4C0F471.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2549
Deuteranopia (green-blind)
#222D46
Tritanopia (blue-blind)
#4F162A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #4c0f47;
/* rgb */ color: rgb(76, 15, 71);
/* oklch */ color: oklch(30.1% 0.114 331.6);
Tailwind
colors: {
  custom: {
    50: '#81557a',
    500: '#4c0f47',
    950: '#000000',
  },
}
SCSS
$custom: #4c0f47;
$custom-light: #81557a;
$custom-dark: #000000;
JSON
{
  "hex": "#4c0f47",
  "rgb": {
    "r": 76,
    "g": 15,
    "b": 71
  },
  "hsl": {
    "h": 304.918,
    "s": 67.033,
    "l": 17.843
  },
  "oklch": {
    "l": 0.30084,
    "c": 0.11423,
    "h": 331.6
  },
  "luminance": 0.02333
}

Semantic roles & 50–950 ramp

primary
#4C0F47
secondary
#318638
accent
#EA4C3E
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0309
muted
#7C787B

Preview Lab

Preview with #4C0F47

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

Preview Lab → · Contrast checker → · Palette generator →

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