#4D1A85#4D1A85

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

Color values

HEX#4D1A85
RGBrgb(77, 26, 133)
HSLhsl(269, 67%, 31%)
HSVhsv(269, 80%, 52%)
CMYKcmyk(42.1%, 80.5%, 0%, 47.8%)
CIE-LABlab(23.70, 44.86, -49.88)
CIE-LCHlch(23.70, 67.09, 311.96°)
OKLaboklab(36.27% 0.0808 -0.1427)
OKLCHoklch(36.27% 0.164 299.5)
XYZxyz(7.6625, 4.0099, 22.5560)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1A85 #52851A
analogous
#1A1C85 #4D1A85 #821A85
triadic
#4D1A85 #854D1A #1A854D
tetradic
#4D1A85 #851A1C #52851A #1A8582
square
#4D1A85 #851A1C #52851A #1A8582
split-complementary
#4D1A85 #85821A #1C851A
monochromatic
#12061F #2F1052 #4D1A85 #6B24B8 #8940DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4D1A85#FFFFFF#000000##FFFFFF
##4D1A851.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)
#003888
Deuteranopia (green-blind)
#003783
Tritanopia (blue-blind)
#3F374F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4d1a85;
/* rgb */ color: rgb(77, 26, 133);
/* oklch */ color: oklch(36.3% 0.164 299.5);
Tailwind
colors: {
  custom: {
    50: '#855da9',
    500: '#4d1a85',
    950: '#000000',
  },
}
SCSS
$custom: #4d1a85;
$custom-light: #855da9;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1a85",
  "rgb": {
    "r": 77,
    "g": 26,
    "b": 133
  },
  "hsl": {
    "h": 268.598,
    "s": 67.296,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36271,
    "c": 0.16393,
    "h": 299.5
  },
  "luminance": 0.0401
}

Semantic roles & 50–950 ramp

primary
#4D1A85
secondary
#80B842
accent
#EA3E98
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4D1A85

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

Preview Lab → · Contrast checker → · Palette generator →

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