#4D1768#4D1768

#4D1768 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.5% C 0.136 H 311.6°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#4D1768
RGBrgb(77, 23, 104)
HSLhsl(280, 64%, 25%)
HSVhsv(280, 78%, 41%)
CMYKcmyk(26%, 77.9%, 0%, 59.2%)
CIE-LABlab(20.79, 39.01, -36.05)
CIE-LCHlch(20.79, 53.12, 317.25°)
OKLaboklab(33.45% 0.0906 -0.102)
OKLCHoklch(33.45% 0.136 311.6)
XYZxyz(5.8652, 3.1902, 13.4008)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1768 #326817
analogous
#241768 #4D1768 #68175B
triadic
#4D1768 #684D17 #17684D
tetradic
#4D1768 #682417 #326817 #175B68
square
#4D1768 #682417 #326817 #175B68
split-complementary
#4D1768 #5B6817 #176824
monochromatic
#130619 #280C36 #4D1768 #72229A #972DCC

Accessibility & contrast

On white

12.82
#4D1768 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#4D1768 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1768
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1768#FFFFFF#000000##FFFFFF
##4D17681.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6A
Deuteranopia (green-blind)
#0A3366
Tritanopia (blue-blind)
#4A293E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4d1768;
/* rgb */ color: rgb(77, 23, 104);
/* oklch */ color: oklch(33.5% 0.136 311.6);
Tailwind
colors: {
  custom: {
    50: '#825a94',
    500: '#4d1768',
    950: '#000000',
  },
}
SCSS
$custom: #4d1768;
$custom-light: #825a94;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1768",
  "rgb": {
    "r": 77,
    "g": 23,
    "b": 104
  },
  "hsl": {
    "h": 280,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.33454,
    "c": 0.13645,
    "h": 311.6
  },
  "luminance": 0.0319
}

Semantic roles & 50–950 ramp

primary
#4D1768
secondary
#5D9E3D
accent
#E74178
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4D1768

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

Preview Lab → · Contrast checker → · Palette generator →

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