#4D1252#4D1252

#4D1252 is a dark, vivid purple. Relative luminance 0.026; OKLCH L 31.3% C 0.121 H 324.6°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#4D1252
RGBrgb(77, 18, 82)
HSLhsl(295, 64%, 20%)
HSVhsv(295, 78%, 32%)
CMYKcmyk(6.1%, 78%, 0%, 67.8%)
CIE-LABlab(18.45, 36.31, -25.17)
CIE-LCHlch(18.45, 44.18, 325.26°)
OKLaboklab(31.28% 0.0985 -0.0701)
OKLCHoklch(31.28% 0.121 324.6)
XYZxyz(4.7997, 2.6199, 8.2339)
Luminance0.0262 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1252 #175212
analogous
#2D1252 #4D1252 #521237
triadic
#4D1252 #524D12 #12524D
tetradic
#4D1252 #522D12 #175212 #123752
square
#4D1252 #522D12 #175212 #123752
split-complementary
#4D1252 #375212 #12522D
monochromatic
#180619 #1E0720 #4D1252 #7C1D84 #AB28B6

Accessibility & contrast

On white

13.78
#4D1252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#4D1252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1252
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1252#FFFFFF#000000##FFFFFF
##4D12521.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012854
Deuteranopia (green-blind)
#1E2F50
Tritanopia (blue-blind)
#4F1D31
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4d1252;
/* rgb */ color: rgb(77, 18, 82);
/* oklch */ color: oklch(31.3% 0.121 324.6);
Tailwind
colors: {
  custom: {
    50: '#815783',
    500: '#4d1252',
    950: '#000000',
  },
}
SCSS
$custom: #4d1252;
$custom-light: #815783;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1252",
  "rgb": {
    "r": 77,
    "g": 18,
    "b": 82
  },
  "hsl": {
    "h": 295.313,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.31282,
    "c": 0.12088,
    "h": 324.6
  },
  "luminance": 0.0262
}

Semantic roles & 50–950 ramp

primary
#4D1252
secondary
#3C8B35
accent
#E7414E
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #4D1252

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

Preview Lab → · Contrast checker → · Palette generator →

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