#4D1758#4D1758

#4D1758 is a dark, moderate purple. Relative luminance 0.029; OKLCH L 32.2% C 0.120 H 320.4°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#4D1758
RGBrgb(77, 23, 88)
HSLhsl(290, 59%, 22%)
HSVhsv(290, 74%, 35%)
CMYKcmyk(12.5%, 73.9%, 0%, 65.5%)
CIE-LABlab(19.62, 35.40, -27.35)
CIE-LCHlch(19.62, 44.74, 322.31°)
OKLaboklab(32.25% 0.0924 -0.0765)
OKLCHoklch(32.25% 0.12 320.4)
XYZxyz(5.1282, 2.8954, 9.5194)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1758 #225817
analogous
#2D1758 #4D1758 #581743
triadic
#4D1758 #584D17 #17584D
tetradic
#4D1758 #582D17 #225817 #174358
square
#4D1758 #582D17 #225817 #174358
split-complementary
#4D1758 #435817 #17582D
monochromatic
#150618 #230A27 #4D1758 #772489 #A230B9

Accessibility & contrast

On white

13.30
#4D1758 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#4D1758 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1758
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1758#FFFFFF#000000##FFFFFF
##4D17581.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012C5A
Deuteranopia (green-blind)
#1D3156
Tritanopia (blue-blind)
#4D2335
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4d1758;
/* rgb */ color: rgb(77, 23, 88);
/* oklch */ color: oklch(32.2% 0.120 320.4);
Tailwind
colors: {
  custom: {
    50: '#815987',
    500: '#4d1758',
    950: '#000000',
  },
}
SCSS
$custom: #4d1758;
$custom-light: #815987;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1758",
  "rgb": {
    "r": 77,
    "g": 23,
    "b": 88
  },
  "hsl": {
    "h": 289.846,
    "s": 58.559,
    "l": 21.765
  },
  "oklch": {
    "l": 0.32248,
    "c": 0.11994,
    "h": 320.4
  },
  "luminance": 0.02895
}

Semantic roles & 50–950 ramp

primary
#4D1758
secondary
#4A8F3C
accent
#E24660
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #4D1758

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

Preview Lab → · Contrast checker → · Palette generator →

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