#4D235B#4D235B

#4D235B is a dark, moderate purple. Relative luminance 0.035; OKLCH L 34.1% C 0.104 H 316.9°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#4D235B
RGBrgb(77, 35, 91)
HSLhsl(285, 44%, 25%)
HSVhsv(285, 62%, 36%)
CMYKcmyk(15.4%, 61.5%, 0%, 64.3%)
CIE-LABlab(22.07, 29.87, -25.45)
CIE-LCHlch(22.07, 39.24, 319.58°)
OKLaboklab(34.09% 0.076 -0.071)
OKLCHoklch(34.09% 0.104 316.9)
XYZxyz(5.5497, 3.5354, 10.2856)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D235B #315B23
analogous
#31235B #4D235B #5B234D
triadic
#4D235B #5B4D23 #235B4D
tetradic
#4D235B #5B3123 #315B23 #234D5B
square
#4D235B #5B3123 #315B23 #234D5B
split-complementary
#4D235B #4D5B23 #235B31
monochromatic
#130916 #28122F #4D235B #723487 #9845B3

Accessibility & contrast

On white

12.30
#4D235B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D235B
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D235B#FFFFFF#000000##FFFFFF
##4D235B1.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15325D
Deuteranopia (green-blind)
#24365A
Tritanopia (blue-blind)
#4C2C3B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4d235b;
/* rgb */ color: rgb(77, 35, 91);
/* oklch */ color: oklch(34.1% 0.104 316.9);
Tailwind
colors: {
  custom: {
    50: '#81608a',
    500: '#4d235b',
    950: '#000000',
  },
}
SCSS
$custom: #4d235b;
$custom-light: #81608a;
$custom-dark: #000000;
JSON
{
  "hex": "#4d235b",
  "rgb": {
    "r": 77,
    "g": 35,
    "b": 91
  },
  "hsl": {
    "h": 285,
    "s": 44.444,
    "l": 24.706
  },
  "oklch": {
    "l": 0.34087,
    "c": 0.10401,
    "h": 316.9
  },
  "luminance": 0.03535
}

Semantic roles & 50–950 ramp

primary
#4D235B
secondary
#5C8F4B
accent
#D45474
background
#F8F5F8
surface
#EFEAF0
border
#CAC6CB
text
#0A050B
muted
#7C797C

Preview Lab

Preview with #4D235B

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

Preview Lab → · Contrast checker → · Palette generator →

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