#4F0C4D#4F0C4D

#4F0C4D is a dark, vivid purple. Relative luminance 0.025; OKLCH L 30.7% C 0.124 H 329.4°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#4F0C4D
RGBrgb(79, 12, 77)
HSLhsl(302, 74%, 18%)
HSVhsv(302, 85%, 31%)
CMYKcmyk(0%, 84.8%, 2.5%, 69%)
CIE-LABlab(17.74, 38.02, -22.88)
CIE-LCHlch(17.74, 44.37, 328.96°)
OKLaboklab(30.74% 0.1072 -0.0633)
OKLCHoklch(30.74% 0.125 329.4)
XYZxyz(4.6954, 2.4614, 7.2475)
Luminance0.0246 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F0C4D #0C4F0E
analogous
#2F0C4F #4F0C4D #4F0C2B
triadic
#4F0C4D #4D4F0C #0C4D4F
tetradic
#4F0C4D #4F2F0C #0C4F0E #0C2B4F
square
#4F0C4D #4F2F0C #0C4F0E #0C2B4F
split-complementary
#4F0C4D #2B4F0C #0C4F2F
monochromatic
#1B041A #1B041A #4F0C4D #841481 #B91CB5

Accessibility & contrast

On white

14.07
#4F0C4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F0C4D
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F0C4D#FFFFFF#000000##FFFFFF
##4F0C4D1.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02264F
Deuteranopia (green-blind)
#212F4B
Tritanopia (blue-blind)
#52162C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #4f0c4d;
/* rgb */ color: rgb(79, 12, 77);
/* oklch */ color: oklch(30.7% 0.124 329.4);
Tailwind
colors: {
  custom: {
    50: '#83547f',
    500: '#4f0c4d',
    950: '#000000',
  },
}
SCSS
$custom: #4f0c4d;
$custom-light: #83547f;
$custom-dark: #000000;
JSON
{
  "hex": "#4f0c4d",
  "rgb": {
    "r": 79,
    "g": 12,
    "b": 77
  },
  "hsl": {
    "h": 301.791,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.30743,
    "c": 0.1245,
    "h": 329.4
  },
  "luminance": 0.02461
}

Semantic roles & 50–950 ramp

primary
#4F0C4D
secondary
#2C8B2F
accent
#F03D38
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #4F0C4D

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

Preview Lab → · Contrast checker → · Palette generator →

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