#4D219F#4D219F

#4D219F is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.5% C 0.186 H 291.2°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#4D219F
RGBrgb(77, 33, 159)
HSLhsl(261, 66%, 38%)
HSVhsv(261, 79%, 62%)
CMYKcmyk(51.6%, 79.2%, 0%, 37.6%)
CIE-LABlab(27.21, 48.70, -60.21)
CIE-LCHlch(27.21, 77.44, 308.96°)
OKLaboklab(39.46% 0.0672 -0.173)
OKLCHoklch(39.46% 0.186 291.2)
XYZxyz(9.8606, 5.1683, 33.2722)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D219F #739F21
analogous
#21349F #4D219F #8C219F
triadic
#4D219F #9F4D21 #219F4D
tetradic
#4D219F #9F2134 #739F21 #219F8C
square
#4D219F #9F2134 #739F21 #219F8C
split-complementary
#4D219F #9F8C21 #349F21
monochromatic
#1C0C3A #34166C #4D219F #662CD2 #8A5DDD

Accessibility & contrast

On white

10.33
#4D219F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4D219F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D219F
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D219F#FFFFFF#000000##FFFFFF
##4D219F1.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A2
Deuteranopia (green-blind)
#003E9D
Tritanopia (blue-blind)
#304560
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4d219f;
/* rgb */ color: rgb(77, 33, 159);
/* oklch */ color: oklch(39.5% 0.186 291.2);
Tailwind
colors: {
  custom: {
    50: '#8862bc',
    500: '#4d219f',
    950: '#000000',
  },
}
SCSS
$custom: #4d219f;
$custom-light: #8862bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4d219f",
  "rgb": {
    "r": 77,
    "g": 33,
    "b": 159
  },
  "hsl": {
    "h": 260.952,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39461,
    "c": 0.1856,
    "h": 291.2
  },
  "luminance": 0.05169
}

Semantic roles & 50–950 ramp

primary
#4D219F
secondary
#9EC25A
accent
#E93FAD
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4D219F

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

Preview Lab → · Contrast checker → · Palette generator →

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