#4D255C#4D255C

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

Color values

HEX#4D255C
RGBrgb(77, 37, 92)
HSLhsl(284, 43%, 25%)
HSVhsv(284, 60%, 36%)
CMYKcmyk(16.3%, 59.8%, 0%, 63.9%)
CIE-LABlab(22.56, 28.96, -25.33)
CIE-LCHlch(22.56, 38.47, 318.83°)
OKLaboklab(34.47% 0.0731 -0.0707)
OKLCHoklch(34.47% 0.102 315.9)
XYZxyz(5.6536, 3.6738, 10.5344)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D255C #345C25
analogous
#31255C #4D255C #5C2550
triadic
#4D255C #5C4D25 #255C4D
tetradic
#4D255C #5C3125 #345C25 #25505C
square
#4D255C #5C3125 #345C25 #25505C
split-complementary
#4D255C #505C25 #255C31
monochromatic
#120916 #281330 #4D255C #723788 #9648B3

Accessibility & contrast

On white

12.11
#4D255C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4D255C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D255C
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D255C#FFFFFF#000000##FFFFFF
##4D255C1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18335E
Deuteranopia (green-blind)
#25375B
Tritanopia (blue-blind)
#4C2E3C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4d255c;
/* rgb */ color: rgb(77, 37, 92);
/* oklch */ color: oklch(34.5% 0.102 315.9);
Tailwind
colors: {
  custom: {
    50: '#80628a',
    500: '#4d255c',
    950: '#000000',
  },
}
SCSS
$custom: #4d255c;
$custom-light: #80628a;
$custom-dark: #000000;
JSON
{
  "hex": "#4d255c",
  "rgb": {
    "r": 77,
    "g": 37,
    "b": 92
  },
  "hsl": {
    "h": 283.636,
    "s": 42.636,
    "l": 25.294
  },
  "oklch": {
    "l": 0.34466,
    "c": 0.10166,
    "h": 315.9
  },
  "luminance": 0.03674
}

Semantic roles & 50–950 ramp

primary
#4D255C
secondary
#5F8F4D
accent
#D25577
background
#F8F5F8
surface
#EFEAF0
border
#CAC6CB
text
#0A050C
muted
#7C797D

Preview Lab

Preview with #4D255C

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

Preview Lab → · Contrast checker → · Palette generator →

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