#4D235C#4D235C

#4D235C is a dark, moderate purple. Relative luminance 0.036; OKLCH L 34.2% C 0.105 H 316.3°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#4D235C
RGBrgb(77, 35, 92)
HSLhsl(284, 45%, 25%)
HSVhsv(284, 62%, 36%)
CMYKcmyk(16.3%, 62%, 0%, 63.9%)
CIE-LABlab(22.13, 30.11, -26.01)
CIE-LCHlch(22.13, 39.79, 319.18°)
OKLaboklab(34.15% 0.0761 -0.0727)
OKLCHoklch(34.15% 0.105 316.3)
XYZxyz(5.5931, 3.5527, 10.5143)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D235C #325C23
analogous
#31235C #4D235C #5C234E
triadic
#4D235C #5C4D23 #235C4D
tetradic
#4D235C #5C3123 #325C23 #234E5C
square
#4D235C #5C3123 #325C23 #234E5C
split-complementary
#4D235C #4E5C23 #235C31
monochromatic
#130816 #281230 #4D235C #723488 #9745B5

Accessibility & contrast

On white

12.28
#4D235C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4D235C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D235C
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D235C#FFFFFF#000000##FFFFFF
##4D235C1.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14325E
Deuteranopia (green-blind)
#24365B
Tritanopia (blue-blind)
#4C2C3C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4d235c;
/* rgb */ color: rgb(77, 35, 92);
/* oklch */ color: oklch(34.2% 0.105 316.3);
Tailwind
colors: {
  custom: {
    50: '#81608a',
    500: '#4d235c',
    950: '#000000',
  },
}
SCSS
$custom: #4d235c;
$custom-light: #81608a;
$custom-dark: #000000;
JSON
{
  "hex": "#4d235c",
  "rgb": {
    "r": 77,
    "g": 35,
    "b": 92
  },
  "hsl": {
    "h": 284.211,
    "s": 44.882,
    "l": 24.902
  },
  "oklch": {
    "l": 0.34152,
    "c": 0.10518,
    "h": 316.3
  },
  "luminance": 0.03553
}

Semantic roles & 50–950 ramp

primary
#4D235C
secondary
#5D904B
accent
#D55375
background
#F8F5F8
surface
#EFEAF0
border
#CAC6CB
text
#0A050C
muted
#7C797D

Preview Lab

Preview with #4D235C

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

Preview Lab → · Contrast checker → · Palette generator →

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