#4D1958#4D1958

#4D1958 is a dark, moderate purple. Relative luminance 0.030; OKLCH L 32.5% C 0.117 H 320.2°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#4D1958
RGBrgb(77, 25, 88)
HSLhsl(290, 56%, 22%)
HSVhsv(290, 72%, 35%)
CMYKcmyk(12.5%, 71.6%, 0%, 65.5%)
CIE-LABlab(19.96, 34.46, -26.82)
CIE-LCHlch(19.96, 43.67, 322.11°)
OKLaboklab(32.49% 0.0899 -0.0749)
OKLCHoklch(32.49% 0.117 320.2)
XYZxyz(5.1694, 2.9779, 9.5331)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1958 #245819
analogous
#2E1958 #4D1958 #581944
triadic
#4D1958 #584D19 #19584D
tetradic
#4D1958 #582E19 #245819 #194458
square
#4D1958 #582E19 #245819 #194458
split-complementary
#4D1958 #445819 #19582E
monochromatic
#150718 #230B28 #4D1958 #772788 #A034B7

Accessibility & contrast

On white

13.16
#4D1958 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#4D1958 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1958
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1958#FFFFFF#000000##FFFFFF
##4D19581.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052D5A
Deuteranopia (green-blind)
#1F3256
Tritanopia (blue-blind)
#4D2436
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4d1958;
/* rgb */ color: rgb(77, 25, 88);
/* oklch */ color: oklch(32.5% 0.117 320.2);
Tailwind
colors: {
  custom: {
    50: '#815a87',
    500: '#4d1958',
    950: '#000000',
  },
}
SCSS
$custom: #4d1958;
$custom-light: #815a87;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1958",
  "rgb": {
    "r": 77,
    "g": 25,
    "b": 88
  },
  "hsl": {
    "h": 289.524,
    "s": 55.752,
    "l": 22.157
  },
  "oklch": {
    "l": 0.32488,
    "c": 0.11703,
    "h": 320.2
  },
  "luminance": 0.02978
}

Semantic roles & 50–950 ramp

primary
#4D1958
secondary
#4C8E3E
accent
#DF4963
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #4D1958

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

Preview Lab → · Contrast checker → · Palette generator →

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