#4D125B#4D125B

#4D125B is a dark, vivid purple. Relative luminance 0.028; OKLCH L 31.9% C 0.129 H 319.1°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#4D125B
RGBrgb(77, 18, 91)
HSLhsl(288, 67%, 21%)
HSVhsv(288, 80%, 36%)
CMYKcmyk(15.4%, 80.2%, 0%, 64.3%)
CIE-LABlab(19.08, 38.17, -30.22)
CIE-LCHlch(19.08, 48.69, 321.63°)
OKLaboklab(31.93% 0.0978 -0.0848)
OKLCHoklch(31.93% 0.129 319.1)
XYZxyz(5.1650, 2.7660, 10.1573)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D125B #205B12
analogous
#29125B #4D125B #5B1245
triadic
#4D125B #5B4D12 #125B4D
tetradic
#4D125B #5B2912 #205B12 #12455B
square
#4D125B #5B2912 #205B12 #12455B
split-complementary
#4D125B #455B12 #125B29
monochromatic
#16051A #220828 #4D125B #781C8E #A326C1

Accessibility & contrast

On white

13.52
#4D125B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#4D125B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D125B
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D125B#FFFFFF#000000##FFFFFF
##4D125B1.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5D
Deuteranopia (green-blind)
#173059
Tritanopia (blue-blind)
#4D2136
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4d125b;
/* rgb */ color: rgb(77, 18, 91);
/* oklch */ color: oklch(31.9% 0.129 319.1);
Tailwind
colors: {
  custom: {
    50: '#82578a',
    500: '#4d125b',
    950: '#000000',
  },
}
SCSS
$custom: #4d125b;
$custom-light: #82578a;
$custom-dark: #000000;
JSON
{
  "hex": "#4d125b",
  "rgb": {
    "r": 77,
    "g": 18,
    "b": 91
  },
  "hsl": {
    "h": 288.493,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.31931,
    "c": 0.12947,
    "h": 319.1
  },
  "luminance": 0.02766
}

Semantic roles & 50–950 ramp

primary
#4D125B
secondary
#479335
accent
#EA3E5F
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030C
muted
#7C787D

Preview Lab

Preview with #4D125B

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

Preview Lab → · Contrast checker → · Palette generator →

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