#4D1A86#4D1A86

#4D1A86 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.4% C 0.165 H 299.2°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#4D1A86
RGBrgb(77, 26, 134)
HSLhsl(268, 68%, 31%)
HSVhsv(268, 81%, 53%)
CMYKcmyk(42.5%, 80.6%, 0%, 47.5%)
CIE-LABlab(23.80, 45.11, -50.36)
CIE-LCHlch(23.80, 67.61, 311.85°)
OKLaboklab(36.36% 0.0805 -0.1441)
OKLCHoklch(36.36% 0.165 299.2)
XYZxyz(7.7319, 4.0377, 22.9216)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1A86 #53861A
analogous
#1A1D86 #4D1A86 #831A86
triadic
#4D1A86 #864D1A #1A864D
tetradic
#4D1A86 #861A1D #53861A #1A8683
square
#4D1A86 #861A1D #53861A #1A8683
split-complementary
#4D1A86 #86831A #1D861A
monochromatic
#12061F #301053 #4D1A86 #6A24B9 #8940DA

Accessibility & contrast

On white

11.62
#4D1A86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4D1A86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1A86
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1A86#FFFFFF#000000##FFFFFF
##4D1A861.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003989
Deuteranopia (green-blind)
#003884
Tritanopia (blue-blind)
#3F3850
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4d1a86;
/* rgb */ color: rgb(77, 26, 134);
/* oklch */ color: oklch(36.4% 0.165 299.2);
Tailwind
colors: {
  custom: {
    50: '#855daa',
    500: '#4d1a86',
    950: '#000000',
  },
}
SCSS
$custom: #4d1a86;
$custom-light: #855daa;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1a86",
  "rgb": {
    "r": 77,
    "g": 26,
    "b": 134
  },
  "hsl": {
    "h": 268.333,
    "s": 67.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36363,
    "c": 0.16502,
    "h": 299.2
  },
  "luminance": 0.04038
}

Semantic roles & 50–950 ramp

primary
#4D1A86
secondary
#81B942
accent
#EA3D99
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4D1A86

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

Preview Lab → · Contrast checker → · Palette generator →

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