#4D0C5F#4D0C5F

#4D0C5F is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.7% C 0.140 H 317.3°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#4D0C5F
RGBrgb(77, 12, 95)
HSLhsl(287, 78%, 21%)
HSVhsv(287, 87%, 37%)
CMYKcmyk(18.9%, 87.4%, 0%, 62.7%)
CIE-LABlab(18.66, 41.12, -33.57)
CIE-LCHlch(18.66, 53.08, 320.77°)
OKLaboklab(31.73% 0.1026 -0.0946)
OKLCHoklch(31.73% 0.14 317.3)
XYZxyz(5.2573, 2.6672, 11.0621)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D0C5F #1E5F0C
analogous
#230C5F #4D0C5F #5F0C47
triadic
#4D0C5F #5F4D0C #0C5F4D
tetradic
#4D0C5F #5F230C #1E5F0C #0C475F
square
#4D0C5F #5F230C #1E5F0C #0C475F
split-complementary
#4D0C5F #475F0C #0C5F23
monochromatic
#16031B #210529 #4D0C5F #791395 #A51ACC

Accessibility & contrast

On white

13.70
#4D0C5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#4D0C5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D0C5F
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D0C5F#FFFFFF#000000##FFFFFF
##4D0C5F1.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A61
Deuteranopia (green-blind)
#0E2F5D
Tritanopia (blue-blind)
#4C2037
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4d0c5f;
/* rgb */ color: rgb(77, 12, 95);
/* oklch */ color: oklch(31.7% 0.140 317.3);
Tailwind
colors: {
  custom: {
    50: '#82558d',
    500: '#4d0c5f',
    950: '#000000',
  },
}
SCSS
$custom: #4d0c5f;
$custom-light: #82558d;
$custom-dark: #000000;
JSON
{
  "hex": "#4d0c5f",
  "rgb": {
    "r": 77,
    "g": 12,
    "b": 95
  },
  "hsl": {
    "h": 286.988,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.31729,
    "c": 0.13955,
    "h": 317.3
  },
  "luminance": 0.02667
}

Semantic roles & 50–950 ramp

primary
#4D0C5F
secondary
#45992D
accent
#F4345D
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030C
muted
#7C787D

Preview Lab

Preview with #4D0C5F

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

Preview Lab → · Contrast checker → · Palette generator →

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