#4D0F5B#4D0F5B

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

Color values

HEX#4D0F5B
RGBrgb(77, 15, 91)
HSLhsl(289, 72%, 21%)
HSVhsv(289, 84%, 36%)
CMYKcmyk(15.4%, 83.5%, 0%, 64.3%)
CIE-LABlab(18.69, 39.29, -30.85)
CIE-LCHlch(18.69, 49.95, 321.87°)
OKLaboklab(31.66% 0.1007 -0.0867)
OKLCHoklch(31.66% 0.133 319.3)
XYZxyz(5.1195, 2.6750, 10.1422)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D0F5B #1D5B0F
analogous
#270F5B #4D0F5B #5B0F43
triadic
#4D0F5B #5B4D0F #0F5B4D
tetradic
#4D0F5B #5B270F #1D5B0F #0F435B
square
#4D0F5B #5B270F #1D5B0F #0F435B
split-complementary
#4D0F5B #435B0F #0F5B27
monochromatic
#16041A #210626 #4D0F5B #791890 #A620C4

Accessibility & contrast

On white

13.68
#4D0F5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D0F5B
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D0F5B#FFFFFF#000000##FFFFFF
##4D0F5B1.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295D
Deuteranopia (green-blind)
#152F59
Tritanopia (blue-blind)
#4D1F35
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4d0f5b;
/* rgb */ color: rgb(77, 15, 91);
/* oklch */ color: oklch(31.7% 0.133 319.3);
Tailwind
colors: {
  custom: {
    50: '#82568a',
    500: '#4d0f5b',
    950: '#000000',
  },
}
SCSS
$custom: #4d0f5b;
$custom-light: #82568a;
$custom-dark: #000000;
JSON
{
  "hex": "#4d0f5b",
  "rgb": {
    "r": 77,
    "g": 15,
    "b": 91
  },
  "hsl": {
    "h": 288.947,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.31656,
    "c": 0.13287,
    "h": 319.3
  },
  "luminance": 0.02675
}

Semantic roles & 50–950 ramp

primary
#4D0F5B
secondary
#449531
accent
#EE395B
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030C
muted
#7C787D

Preview Lab

Preview with #4D0F5B

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

Preview Lab → · Contrast checker → · Palette generator →

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