#4D0F5C#4D0F5C

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

Color values

HEX#4D0F5C
RGBrgb(77, 15, 92)
HSLhsl(288, 72%, 21%)
HSVhsv(288, 84%, 36%)
CMYKcmyk(16.3%, 83.7%, 0%, 63.9%)
CIE-LABlab(18.77, 39.50, -31.39)
CIE-LCHlch(18.77, 50.46, 321.52°)
OKLaboklab(31.73% 0.1006 -0.0883)
OKLCHoklch(31.73% 0.134 318.7)
XYZxyz(5.1629, 2.6924, 10.3709)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D0F5C #1E5C0F
analogous
#260F5C #4D0F5C #5C0F44
triadic
#4D0F5C #5C4D0F #0F5C4D
tetradic
#4D0F5C #5C260F #1E5C0F #0F445C
square
#4D0F5C #5C260F #1E5C0F #0F445C
split-complementary
#4D0F5C #445C0F #0F5C26
monochromatic
#16041A #210627 #4D0F5C #791891 #A520C5

Accessibility & contrast

On white

13.65
#4D0F5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#4D0F5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D0F5C
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D0F5C#FFFFFF#000000##FFFFFF
##4D0F5C1.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5E
Deuteranopia (green-blind)
#14305A
Tritanopia (blue-blind)
#4D2035
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4d0f5c;
/* rgb */ color: rgb(77, 15, 92);
/* oklch */ color: oklch(31.7% 0.134 318.7);
Tailwind
colors: {
  custom: {
    50: '#82568b',
    500: '#4d0f5c',
    950: '#000000',
  },
}
SCSS
$custom: #4d0f5c;
$custom-light: #82568b;
$custom-dark: #000000;
JSON
{
  "hex": "#4d0f5c",
  "rgb": {
    "r": 77,
    "g": 15,
    "b": 92
  },
  "hsl": {
    "h": 288.312,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.31732,
    "c": 0.13381,
    "h": 318.7
  },
  "luminance": 0.02692
}

Semantic roles & 50–950 ramp

primary
#4D0F5C
secondary
#459531
accent
#EF395C
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030C
muted
#7C787D

Preview Lab

Preview with #4D0F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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