#4D1E82#4D1E82

#4D1E82 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.156 H 299.9°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#4D1E82
RGBrgb(77, 30, 130)
HSLhsl(268, 63%, 31%)
HSVhsv(268, 77%, 51%)
CMYKcmyk(40.8%, 76.9%, 0%, 49%)
CIE-LABlab(24.06, 42.30, -47.42)
CIE-LCHlch(24.06, 63.55, 311.74°)
OKLaboklab(36.44% 0.078 -0.1355)
OKLCHoklch(36.44% 0.156 299.9)
XYZxyz(7.5531, 4.1180, 21.5117)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1E82 #53821E
analogous
#1E2182 #4D1E82 #7F1E82
triadic
#4D1E82 #824D1E #1E824D
tetradic
#4D1E82 #821E21 #53821E #1E827F
square
#4D1E82 #821E21 #53821E #1E827F
split-complementary
#4D1E82 #827F1E #21821E
monochromatic
#12071F #301350 #4D1E82 #6A29B4 #8946D4

Accessibility & contrast

On white

11.52
#4D1E82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4D1E82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1E82
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1E82#FFFFFF#000000##FFFFFF
##4D1E821.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003985
Deuteranopia (green-blind)
#003880
Tritanopia (blue-blind)
#41384E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4d1e82;
/* rgb */ color: rgb(77, 30, 130);
/* oklch */ color: oklch(36.4% 0.156 299.9);
Tailwind
colors: {
  custom: {
    50: '#845fa7',
    500: '#4d1e82',
    950: '#000000',
  },
}
SCSS
$custom: #4d1e82;
$custom-light: #845fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1e82",
  "rgb": {
    "r": 77,
    "g": 30,
    "b": 130
  },
  "hsl": {
    "h": 268.2,
    "s": 62.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36436,
    "c": 0.1563,
    "h": 299.9
  },
  "luminance": 0.04118
}

Semantic roles & 50–950 ramp

primary
#4D1E82
secondary
#81B547
accent
#E64299
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4D1E82

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

Preview Lab → · Contrast checker → · Palette generator →

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