#4D245C#4D245C

#4D245C is a dark, moderate purple. Relative luminance 0.036; OKLCH L 34.3% C 0.103 H 316.1°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#4D245C
RGBrgb(77, 36, 92)
HSLhsl(284, 44%, 25%)
HSVhsv(284, 61%, 36%)
CMYKcmyk(16.3%, 60.9%, 0%, 63.9%)
CIE-LABlab(22.35, 29.54, -25.67)
CIE-LCHlch(22.35, 39.14, 319.01°)
OKLaboklab(34.31% 0.0746 -0.0717)
OKLCHoklch(34.31% 0.103 316.1)
XYZxyz(5.6229, 3.6124, 10.5242)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D245C #335C24
analogous
#31245C #4D245C #5C244F
triadic
#4D245C #5C4D24 #245C4D
tetradic
#4D245C #5C3124 #335C24 #244F5C
square
#4D245C #5C3124 #335C24 #244F5C
split-complementary
#4D245C #4F5C24 #245C31
monochromatic
#120916 #281330 #4D245C #723588 #9746B4

Accessibility & contrast

On white

12.19
#4D245C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4D245C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D245C
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D245C#FFFFFF#000000##FFFFFF
##4D245C1.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16335E
Deuteranopia (green-blind)
#24375B
Tritanopia (blue-blind)
#4C2D3C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4d245c;
/* rgb */ color: rgb(77, 36, 92);
/* oklch */ color: oklch(34.3% 0.103 316.1);
Tailwind
colors: {
  custom: {
    50: '#81618a',
    500: '#4d245c',
    950: '#000000',
  },
}
SCSS
$custom: #4d245c;
$custom-light: #81618a;
$custom-dark: #000000;
JSON
{
  "hex": "#4d245c",
  "rgb": {
    "r": 77,
    "g": 36,
    "b": 92
  },
  "hsl": {
    "h": 283.929,
    "s": 43.75,
    "l": 25.098
  },
  "oklch": {
    "l": 0.34308,
    "c": 0.10343,
    "h": 316.1
  },
  "luminance": 0.03612
}

Semantic roles & 50–950 ramp

primary
#4D245C
secondary
#5E904C
accent
#D35476
background
#F8F5F8
surface
#EFEAF0
border
#CAC6CB
text
#0A050C
muted
#7C797D

Preview Lab

Preview with #4D245C

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

Preview Lab → · Contrast checker → · Palette generator →

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