#4F0C51#4F0C51

#4F0C51 is a dark, vivid purple. Relative luminance 0.025; OKLCH L 31.0% C 0.128 H 326.8°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#4F0C51
RGBrgb(79, 12, 81)
HSLhsl(298, 74%, 18%)
HSVhsv(298, 85%, 32%)
CMYKcmyk(2.5%, 85.2%, 0%, 68.2%)
CIE-LABlab(18.01, 38.76, -25.18)
CIE-LCHlch(18.01, 46.22, 326.98°)
OKLaboklab(31.02% 0.1071 -0.07)
OKLCHoklch(31.02% 0.128 326.8)
XYZxyz(4.8410, 2.5196, 8.0143)
Luminance0.0252 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F0C51 #0E510C
analogous
#2C0C51 #4F0C51 #510C30
triadic
#4F0C51 #514F0C #0C514F
tetradic
#4F0C51 #512C0C #0E510C #0C3051
square
#4F0C51 #512C0C #0E510C #0C3051
split-complementary
#4F0C51 #30510C #0C512C
monochromatic
#1A041B #1B041C #4F0C51 #831486 #B71CBC

Accessibility & contrast

On white

13.96
#4F0C51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#4F0C51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F0C51
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F0C51#FFFFFF#000000##FFFFFF
##4F0C511.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002753
Deuteranopia (green-blind)
#1E2F4F
Tritanopia (blue-blind)
#51192F
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #4f0c51;
/* rgb */ color: rgb(79, 12, 81);
/* oklch */ color: oklch(31.0% 0.128 326.8);
Tailwind
colors: {
  custom: {
    50: '#835582',
    500: '#4f0c51',
    950: '#000000',
  },
}
SCSS
$custom: #4f0c51;
$custom-light: #835582;
$custom-dark: #000000;
JSON
{
  "hex": "#4f0c51",
  "rgb": {
    "r": 79,
    "g": 12,
    "b": 81
  },
  "hsl": {
    "h": 298.261,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.31016,
    "c": 0.12792,
    "h": 326.8
  },
  "luminance": 0.02519
}

Semantic roles & 50–950 ramp

primary
#4F0C51
secondary
#2F8C2C
accent
#F1373C
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #4F0C51

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

Preview Lab → · Contrast checker → · Palette generator →

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