#4D225B#4D225B

#4D225B is a dark, moderate purple. Relative luminance 0.035; OKLCH L 33.9% C 0.106 H 317.1°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#4D225B
RGBrgb(77, 34, 91)
HSLhsl(285, 46%, 25%)
HSVhsv(285, 63%, 36%)
CMYKcmyk(15.4%, 62.6%, 0%, 64.3%)
CIE-LABlab(21.86, 30.44, -25.78)
CIE-LCHlch(21.86, 39.88, 319.74°)
OKLaboklab(33.93% 0.0775 -0.072)
OKLCHoklch(33.93% 0.106 317.1)
XYZxyz(5.5206, 3.4774, 10.2759)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D225B #305B22
analogous
#31225B #4D225B #5B224D
triadic
#4D225B #5B4D22 #225B4D
tetradic
#4D225B #5B3122 #305B22 #224D5B
square
#4D225B #5B3122 #305B22 #224D5B
split-complementary
#4D225B #4D5B22 #225B31
monochromatic
#130816 #27112E #4D225B #733388 #9843B4

Accessibility & contrast

On white

12.39
#4D225B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4D225B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D225B
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D225B#FFFFFF#000000##FFFFFF
##4D225B1.0012.391.7012.39
#FFFFFF12.391.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13325D
Deuteranopia (green-blind)
#23365A
Tritanopia (blue-blind)
#4D2B3B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4d225b;
/* rgb */ color: rgb(77, 34, 91);
/* oklch */ color: oklch(33.9% 0.106 317.1);
Tailwind
colors: {
  custom: {
    50: '#81608a',
    500: '#4d225b',
    950: '#000000',
  },
}
SCSS
$custom: #4d225b;
$custom-light: #81608a;
$custom-dark: #000000;
JSON
{
  "hex": "#4d225b",
  "rgb": {
    "r": 77,
    "g": 34,
    "b": 91
  },
  "hsl": {
    "h": 285.263,
    "s": 45.6,
    "l": 24.51
  },
  "oklch": {
    "l": 0.33934,
    "c": 0.10576,
    "h": 317.1
  },
  "luminance": 0.03477
}

Semantic roles & 50–950 ramp

primary
#4D225B
secondary
#5B8F4A
accent
#D55373
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0A050B
muted
#7C797C

Preview Lab

Preview with #4D225B

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

Preview Lab → · Contrast checker → · Palette generator →

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