#4D1254#4D1254

#4D1254 is a dark, vivid purple. Relative luminance 0.026; OKLCH L 31.4% C 0.123 H 323.3°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#4D1254
RGBrgb(77, 18, 84)
HSLhsl(294, 65%, 20%)
HSVhsv(294, 79%, 33%)
CMYKcmyk(8.3%, 78.6%, 0%, 67.1%)
CIE-LABlab(18.59, 36.71, -26.31)
CIE-LCHlch(18.59, 45.17, 324.37°)
OKLaboklab(31.42% 0.0984 -0.0734)
OKLCHoklch(31.42% 0.123 323.3)
XYZxyz(4.8770, 2.6508, 8.6406)
Luminance0.0265 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1254 #195412
analogous
#2C1254 #4D1254 #54123A
triadic
#4D1254 #544D12 #12544D
tetradic
#4D1254 #542C12 #195412 #123A54
square
#4D1254 #542C12 #195412 #123A54
split-complementary
#4D1254 #3A5412 #12542C
monochromatic
#170519 #1F0722 #4D1254 #7B1D86 #A928B9

Accessibility & contrast

On white

13.73
#4D1254 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#4D1254 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1254
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1254#FFFFFF#000000##FFFFFF
##4D12541.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002956
Deuteranopia (green-blind)
#1D3052
Tritanopia (blue-blind)
#4E1E32
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4d1254;
/* rgb */ color: rgb(77, 18, 84);
/* oklch */ color: oklch(31.4% 0.123 323.3);
Tailwind
colors: {
  custom: {
    50: '#815784',
    500: '#4d1254',
    950: '#000000',
  },
}
SCSS
$custom: #4d1254;
$custom-light: #815784;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1254",
  "rgb": {
    "r": 77,
    "g": 18,
    "b": 84
  },
  "hsl": {
    "h": 293.636,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.31421,
    "c": 0.12276,
    "h": 323.3
  },
  "luminance": 0.0265
}

Semantic roles & 50–950 ramp

primary
#4D1254
secondary
#3E8D35
accent
#E84052
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #4D1254

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

Preview Lab → · Contrast checker → · Palette generator →

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