#4D125C#4D125C

#4D125C is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.0% C 0.130 H 318.5°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#4D125C
RGBrgb(77, 18, 92)
HSLhsl(288, 67%, 22%)
HSVhsv(288, 80%, 36%)
CMYKcmyk(16.3%, 80.4%, 0%, 63.9%)
CIE-LABlab(19.15, 38.39, -30.77)
CIE-LCHlch(19.15, 49.20, 321.29°)
OKLaboklab(32.01% 0.0977 -0.0865)
OKLCHoklch(32.01% 0.13 318.5)
XYZxyz(5.2084, 2.7833, 10.3860)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D125C #215C12
analogous
#28125C #4D125C #5C1246
triadic
#4D125C #5C4D12 #125C4D
tetradic
#4D125C #5C2812 #215C12 #12465C
square
#4D125C #5C2812 #215C12 #12465C
split-complementary
#4D125C #465C12 #125C28
monochromatic
#15051A #220829 #4D125C #781C8F #A326C2

Accessibility & contrast

On white

13.49
#4D125C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D125C
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D125C#FFFFFF#000000##FFFFFF
##4D125C1.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5E
Deuteranopia (green-blind)
#16305A
Tritanopia (blue-blind)
#4D2236
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4d125c;
/* rgb */ color: rgb(77, 18, 92);
/* oklch */ color: oklch(32.0% 0.130 318.5);
Tailwind
colors: {
  custom: {
    50: '#82578b',
    500: '#4d125c',
    950: '#000000',
  },
}
SCSS
$custom: #4d125c;
$custom-light: #82578b;
$custom-dark: #000000;
JSON
{
  "hex": "#4d125c",
  "rgb": {
    "r": 77,
    "g": 18,
    "b": 92
  },
  "hsl": {
    "h": 287.838,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.32006,
    "c": 0.13043,
    "h": 318.5
  },
  "luminance": 0.02783
}

Semantic roles & 50–950 ramp

primary
#4D125C
secondary
#499435
accent
#EA3E61
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030C
muted
#7C787D

Preview Lab

Preview with #4D125C

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

Preview Lab → · Contrast checker → · Palette generator →

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