#4D0C51#4D0C51

#4D0C51 is a dark, vivid purple. Relative luminance 0.024; OKLCH L 30.7% C 0.127 H 325.5°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).

Color values

HEX#4D0C51
RGBrgb(77, 12, 81)
HSLhsl(297, 74%, 18%)
HSVhsv(297, 85%, 32%)
CMYKcmyk(4.9%, 85.2%, 0%, 68.2%)
CIE-LABlab(17.62, 38.30, -25.82)
CIE-LCHlch(17.62, 46.19, 326.01°)
OKLaboklab(30.67% 0.1046 -0.0719)
OKLCHoklch(30.67% 0.127 325.5)
XYZxyz(4.6771, 2.4351, 8.0067)
Luminance0.0244 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D0C51 #10510C
analogous
#2A0C51 #4D0C51 #510C32
triadic
#4D0C51 #514D0C #0C514D
tetradic
#4D0C51 #512A0C #10510C #0C3251
square
#4D0C51 #512A0C #10510C #0C3251
split-complementary
#4D0C51 #32510C #0C512A
monochromatic
#19041B #1A041C #4D0C51 #801486 #B21CBC

Accessibility & contrast

On white

14.12
#4D0C51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D0C51
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D0C51#FFFFFF#000000##FFFFFF
##4D0C511.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002653
Deuteranopia (green-blind)
#1C2E4F
Tritanopia (blue-blind)
#4F192F
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #4d0c51;
/* rgb */ color: rgb(77, 12, 81);
/* oklch */ color: oklch(30.7% 0.127 325.5);
Tailwind
colors: {
  custom: {
    50: '#825482',
    500: '#4d0c51',
    950: '#000000',
  },
}
SCSS
$custom: #4d0c51;
$custom-light: #825482;
$custom-dark: #000000;
JSON
{
  "hex": "#4d0c51",
  "rgb": {
    "r": 77,
    "g": 12,
    "b": 81
  },
  "hsl": {
    "h": 296.522,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.30669,
    "c": 0.12693,
    "h": 325.5
  },
  "luminance": 0.02435
}

Semantic roles & 50–950 ramp

primary
#4D0C51
secondary
#328C2C
accent
#F13742
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #4D0C51

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

Preview Lab → · Contrast checker → · Palette generator →

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