#4D2158#4D2158

#4D2158 is a dark, moderate purple. Relative luminance 0.034; OKLCH L 33.6% C 0.104 H 319.2°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#4D2158
RGBrgb(77, 33, 88)
HSLhsl(288, 45%, 24%)
HSVhsv(288, 63%, 35%)
CMYKcmyk(12.5%, 62.5%, 0%, 65.5%)
CIE-LABlab(21.47, 30.30, -24.41)
CIE-LCHlch(21.47, 38.91, 321.15°)
OKLaboklab(33.59% 0.0788 -0.068)
OKLCHoklch(33.59% 0.104 319.2)
XYZxyz(5.3656, 3.3703, 9.5985)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2158 #2C5821
analogous
#312158 #4D2158 #582147
triadic
#4D2158 #584D21 #21584D
tetradic
#4D2158 #583121 #2C5821 #214758
square
#4D2158 #583121 #2C5821 #214758
split-complementary
#4D2158 #475821 #215831
monochromatic
#130816 #26102B #4D2158 #743285 #9B42B1

Accessibility & contrast

On white

12.54
#4D2158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#4D2158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2158
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2158#FFFFFF#000000##FFFFFF
##4D21581.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15315A
Deuteranopia (green-blind)
#253557
Tritanopia (blue-blind)
#4D2A39
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4d2158;
/* rgb */ color: rgb(77, 33, 88);
/* oklch */ color: oklch(33.6% 0.104 319.2);
Tailwind
colors: {
  custom: {
    50: '#815f87',
    500: '#4d2158',
    950: '#000000',
  },
}
SCSS
$custom: #4d2158;
$custom-light: #815f87;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2158",
  "rgb": {
    "r": 77,
    "g": 33,
    "b": 88
  },
  "hsl": {
    "h": 288,
    "s": 45.455,
    "l": 23.725
  },
  "oklch": {
    "l": 0.33587,
    "c": 0.10406,
    "h": 319.2
  },
  "luminance": 0.0337
}

Semantic roles & 50–950 ramp

primary
#4D2158
secondary
#568C49
accent
#D5536D
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0A050B
muted
#7C797C

Preview Lab

Preview with #4D2158

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

Preview Lab → · Contrast checker → · Palette generator →

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