#4D1D80#4D1D80

#4D1D80 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.155 H 300.8°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#4D1D80
RGBrgb(77, 29, 128)
HSLhsl(269, 63%, 31%)
HSVhsv(269, 77%, 50%)
CMYKcmyk(39.8%, 77.3%, 0%, 49.8%)
CIE-LABlab(23.72, 42.25, -46.71)
CIE-LCHlch(23.72, 62.98, 312.13°)
OKLaboklab(36.14% 0.0794 -0.1334)
OKLCHoklch(36.14% 0.155 300.8)
XYZxyz(7.3953, 4.0150, 20.8032)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1D80 #50801D
analogous
#1D1E80 #4D1D80 #7E1D80
triadic
#4D1D80 #804D1D #1D804D
tetradic
#4D1D80 #801D1E #50801D #1D807E
square
#4D1D80 #801D1E #50801D #1D807E
split-complementary
#4D1D80 #807E1D #1E801D
monochromatic
#11061C #2F124E #4D1D80 #6B28B2 #8943D4

Accessibility & contrast

On white

11.65
#4D1D80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4D1D80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1D80
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1D80#FFFFFF#000000##FFFFFF
##4D1D801.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003883
Deuteranopia (green-blind)
#00387E
Tritanopia (blue-blind)
#41364D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4d1d80;
/* rgb */ color: rgb(77, 29, 128);
/* oklch */ color: oklch(36.1% 0.155 300.8);
Tailwind
colors: {
  custom: {
    50: '#845ea6',
    500: '#4d1d80',
    950: '#000000',
  },
}
SCSS
$custom: #4d1d80;
$custom-light: #845ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1d80",
  "rgb": {
    "r": 77,
    "g": 29,
    "b": 128
  },
  "hsl": {
    "h": 269.091,
    "s": 63.057,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36145,
    "c": 0.15522,
    "h": 300.8
  },
  "luminance": 0.04015
}

Semantic roles & 50–950 ramp

primary
#4D1D80
secondary
#7EB345
accent
#E64296
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4D1D80

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

Preview Lab → · Contrast checker → · Palette generator →

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