#4D125D#4D125D

#4D125D is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.1% C 0.131 H 317.9°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#4D125D
RGBrgb(77, 18, 93)
HSLhsl(287, 68%, 22%)
HSVhsv(287, 81%, 36%)
CMYKcmyk(17.2%, 80.6%, 0%, 63.5%)
CIE-LABlab(19.23, 38.60, -31.32)
CIE-LCHlch(19.23, 49.71, 320.95°)
OKLaboklab(32.08% 0.0975 -0.0881)
OKLCHoklch(32.08% 0.131 317.9)
XYZxyz(5.2524, 2.8009, 10.6178)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D125D #225D12
analogous
#28125D #4D125D #5D1248
triadic
#4D125D #5D4D12 #125D4D
tetradic
#4D125D #5D2812 #225D12 #12485D
square
#4D125D #5D2812 #225D12 #12485D
split-complementary
#4D125D #485D12 #125D28
monochromatic
#15051A #23082A #4D125D #771C90 #A226C4

Accessibility & contrast

On white

13.46
#4D125D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#4D125D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D125D
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D125D#FFFFFF#000000##FFFFFF
##4D125D1.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5F
Deuteranopia (green-blind)
#15305B
Tritanopia (blue-blind)
#4C2237
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4d125d;
/* rgb */ color: rgb(77, 18, 93);
/* oklch */ color: oklch(32.1% 0.131 317.9);
Tailwind
colors: {
  custom: {
    50: '#82578b',
    500: '#4d125d',
    950: '#000000',
  },
}
SCSS
$custom: #4d125d;
$custom-light: #82578b;
$custom-dark: #000000;
JSON
{
  "hex": "#4d125d",
  "rgb": {
    "r": 77,
    "g": 18,
    "b": 93
  },
  "hsl": {
    "h": 287.2,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.32082,
    "c": 0.13141,
    "h": 317.9
  },
  "luminance": 0.02801
}

Semantic roles & 50–950 ramp

primary
#4D125D
secondary
#4A9535
accent
#EA3D62
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030C
muted
#7C787D

Preview Lab

Preview with #4D125D

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

Preview Lab → · Contrast checker → · Palette generator →

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