#4D1255#4D1255

#4D1255 is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.5% C 0.124 H 322.6°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#4D1255
RGBrgb(77, 18, 85)
HSLhsl(293, 65%, 20%)
HSVhsv(293, 79%, 33%)
CMYKcmyk(9.4%, 78.8%, 0%, 66.7%)
CIE-LABlab(18.66, 36.92, -26.88)
CIE-LCHlch(18.66, 45.67, 323.94°)
OKLaboklab(31.49% 0.0983 -0.0751)
OKLCHoklch(31.49% 0.124 322.6)
XYZxyz(4.9164, 2.6666, 8.8483)
Luminance0.0267 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1255 #1A5512
analogous
#2B1255 #4D1255 #55123B
triadic
#4D1255 #554D12 #12554D
tetradic
#4D1255 #552B12 #1A5512 #123B55
square
#4D1255 #552B12 #1A5512 #123B55
split-complementary
#4D1255 #3B5512 #12552B
monochromatic
#170519 #1F0722 #4D1255 #7B1D88 #A927BA

Accessibility & contrast

On white

13.70
#4D1255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D1255
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1255#FFFFFF#000000##FFFFFF
##4D12551.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d1255;
/* rgb */ color: rgb(77, 18, 85);
/* oklch */ color: oklch(31.5% 0.124 322.6);
Tailwind
colors: {
  custom: {
    50: '#815785',
    500: '#4d1255',
    950: '#000000',
  },
}
SCSS
$custom: #4d1255;
$custom-light: #815785;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1255",
  "rgb": {
    "r": 77,
    "g": 18,
    "b": 85
  },
  "hsl": {
    "h": 292.836,
    "s": 65.049,
    "l": 20.196
  },
  "oklch": {
    "l": 0.31492,
    "c": 0.12371,
    "h": 322.6
  },
  "luminance": 0.02666
}

Semantic roles & 50–950 ramp

primary
#4D1255
secondary
#408E35
accent
#E84054
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #4D1255

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

Preview Lab → · Contrast checker → · Palette generator →

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