#4D1A87#4D1A87

#4D1A87 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.166 H 298.9°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#4D1A87
RGBrgb(77, 26, 135)
HSLhsl(268, 68%, 32%)
HSVhsv(268, 81%, 53%)
CMYKcmyk(43%, 80.7%, 0%, 47.1%)
CIE-LABlab(23.89, 45.37, -50.84)
CIE-LCHlch(23.89, 68.14, 311.75°)
OKLaboklab(36.46% 0.0802 -0.1455)
OKLCHoklch(36.46% 0.166 298.9)
XYZxyz(7.8020, 4.0657, 23.2907)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1A87 #54871A
analogous
#1A1E87 #4D1A87 #841A87
triadic
#4D1A87 #874D1A #1A874D
tetradic
#4D1A87 #871A1E #54871A #1A8784
square
#4D1A87 #871A1E #54871A #1A8784
split-complementary
#4D1A87 #87841A #1E871A
monochromatic
#120620 #301054 #4D1A87 #6A24BA #8941DA

Accessibility & contrast

On white

11.58
#4D1A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D1A87
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1A87#FFFFFF#000000##FFFFFF
##4D1A871.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#003885
Tritanopia (blue-blind)
#3F3850
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4d1a87;
/* rgb */ color: rgb(77, 26, 135);
/* oklch */ color: oklch(36.5% 0.166 298.9);
Tailwind
colors: {
  custom: {
    50: '#855dab',
    500: '#4d1a87',
    950: '#000000',
  },
}
SCSS
$custom: #4d1a87;
$custom-light: #855dab;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1a87",
  "rgb": {
    "r": 77,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 268.073,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36455,
    "c": 0.16609,
    "h": 298.9
  },
  "luminance": 0.04066
}

Semantic roles & 50–950 ramp

primary
#4D1A87
secondary
#82BA42
accent
#EB3D99
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4D1A87

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

Preview Lab → · Contrast checker → · Palette generator →

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