#4C0F4F#4C0F4F

#4C0F4F is a dark, vivid purple. Relative luminance 0.024; OKLCH L 30.6% C 0.121 H 326.0°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#4C0F4F
RGBrgb(76, 15, 79)
HSLhsl(297, 68%, 18%)
HSVhsv(297, 81%, 31%)
CMYKcmyk(3.8%, 81%, 0%, 69%)
CIE-LABlab(17.66, 36.63, -24.41)
CIE-LCHlch(17.66, 44.02, 326.32°)
OKLaboklab(30.61% 0.1005 -0.0679)
OKLCHoklch(30.61% 0.121 326)
XYZxyz(4.5625, 2.4430, 7.6268)
Luminance0.0244 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C0F4F #124F0F
analogous
#2C0F4F #4C0F4F #4F0F32
triadic
#4C0F4F #4F4C0F #0F4F4C
tetradic
#4C0F4F #4F2C0F #124F0F #0F324F
square
#4C0F4F #4F2C0F #124F0F #0F324F
split-complementary
#4C0F4F #324F0F #0F4F2C
monochromatic
#19051A #1B051C #4C0F4F #7D1982 #AF23B6

Accessibility & contrast

On white

14.11
#4C0F4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#4C0F4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C0F4F
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C0F4F#FFFFFF#000000##FFFFFF
##4C0F4F1.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002651
Deuteranopia (green-blind)
#1E2E4D
Tritanopia (blue-blind)
#4E1A2E
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #4c0f4f;
/* rgb */ color: rgb(76, 15, 79);
/* oklch */ color: oklch(30.6% 0.121 326.0);
Tailwind
colors: {
  custom: {
    50: '#815581',
    500: '#4c0f4f',
    950: '#000000',
  },
}
SCSS
$custom: #4c0f4f;
$custom-light: #815581;
$custom-dark: #000000;
JSON
{
  "hex": "#4c0f4f",
  "rgb": {
    "r": 76,
    "g": 15,
    "b": 79
  },
  "hsl": {
    "h": 297.188,
    "s": 68.085,
    "l": 18.431
  },
  "oklch": {
    "l": 0.30614,
    "c": 0.12131,
    "h": 326
  },
  "luminance": 0.02443
}

Semantic roles & 50–950 ramp

primary
#4C0F4F
secondary
#358931
accent
#EB3D45
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #4C0F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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