#4D255D#4D255D

#4D255D is a dark, moderate purple. Relative luminance 0.037; OKLCH L 34.5% C 0.103 H 315.3°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#4D255D
RGBrgb(77, 37, 93)
HSLhsl(283, 43%, 25%)
HSVhsv(283, 60%, 36%)
CMYKcmyk(17.2%, 60.2%, 0%, 63.5%)
CIE-LABlab(22.62, 29.20, -25.89)
CIE-LCHlch(22.62, 39.03, 318.44°)
OKLaboklab(34.53% 0.0731 -0.0723)
OKLCHoklch(34.53% 0.103 315.3)
XYZxyz(5.6976, 3.6914, 10.7662)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D255D #355D25
analogous
#31255D #4D255D #5D2551
triadic
#4D255D #5D4D25 #255D4D
tetradic
#4D255D #5D3125 #355D25 #25515D
square
#4D255D #5D3125 #355D25 #25515D
split-complementary
#4D255D #515D25 #255D31
monochromatic
#120916 #291431 #4D255D #713689 #9548B5

Accessibility & contrast

On white

12.08
#4D255D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4D255D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D255D
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D255D#FFFFFF#000000##FFFFFF
##4D255D1.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17345F
Deuteranopia (green-blind)
#25375C
Tritanopia (blue-blind)
#4C2E3D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4d255d;
/* rgb */ color: rgb(77, 37, 93);
/* oklch */ color: oklch(34.5% 0.103 315.3);
Tailwind
colors: {
  custom: {
    50: '#81628b',
    500: '#4d255d',
    950: '#000000',
  },
}
SCSS
$custom: #4d255d;
$custom-light: #81628b;
$custom-dark: #000000;
JSON
{
  "hex": "#4d255d",
  "rgb": {
    "r": 77,
    "g": 37,
    "b": 93
  },
  "hsl": {
    "h": 282.857,
    "s": 43.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.34531,
    "c": 0.10286,
    "h": 315.3
  },
  "luminance": 0.03691
}

Semantic roles & 50–950 ramp

primary
#4D255D
secondary
#61904D
accent
#D35579
background
#F8F5F8
surface
#EFEAF0
border
#CAC6CB
text
#0A050C
muted
#7C797D

Preview Lab

Preview with #4D255D

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

Preview Lab → · Contrast checker → · Palette generator →

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