#4D125E#4D125E

#4D125E is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.2% C 0.132 H 317.4°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#4D125E
RGBrgb(77, 18, 94)
HSLhsl(287, 68%, 22%)
HSVhsv(287, 81%, 37%)
CMYKcmyk(18.1%, 80.9%, 0%, 63.1%)
CIE-LABlab(19.30, 38.82, -31.86)
CIE-LCHlch(19.30, 50.22, 320.62°)
OKLaboklab(32.16% 0.0974 -0.0897)
OKLCHoklch(32.16% 0.132 317.4)
XYZxyz(5.2970, 2.8188, 10.8526)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D125E #235E12
analogous
#27125E #4D125E #5E1249
triadic
#4D125E #5E4D12 #125E4D
tetradic
#4D125E #5E2712 #235E12 #12495E
square
#4D125E #5E2712 #235E12 #12495E
split-complementary
#4D125E #495E12 #125E27
monochromatic
#15051A #23082B #4D125E #771C91 #A126C5

Accessibility & contrast

On white

13.43
#4D125E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D125E
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D125E#FFFFFF#000000##FFFFFF
##4D125E1.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B60
Deuteranopia (green-blind)
#14315C
Tritanopia (blue-blind)
#4C2237
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4d125e;
/* rgb */ color: rgb(77, 18, 94);
/* oklch */ color: oklch(32.2% 0.132 317.4);
Tailwind
colors: {
  custom: {
    50: '#82578c',
    500: '#4d125e',
    950: '#000000',
  },
}
SCSS
$custom: #4d125e;
$custom-light: #82578c;
$custom-dark: #000000;
JSON
{
  "hex": "#4d125e",
  "rgb": {
    "r": 77,
    "g": 18,
    "b": 94
  },
  "hsl": {
    "h": 286.579,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.32159,
    "c": 0.13238,
    "h": 317.4
  },
  "luminance": 0.02819
}

Semantic roles & 50–950 ramp

primary
#4D125E
secondary
#4B9635
accent
#EB3D64
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030C
muted
#7C787D

Preview Lab

Preview with #4D125E

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

Preview Lab → · Contrast checker → · Palette generator →

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