#4D219E#4D219E

#4D219E is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.4% C 0.184 H 291.5°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#4D219E
RGBrgb(77, 33, 158)
HSLhsl(261, 65%, 37%)
HSVhsv(261, 79%, 62%)
CMYKcmyk(51.3%, 79.1%, 0%, 38%)
CIE-LABlab(27.11, 48.42, -59.76)
CIE-LCHlch(27.11, 76.92, 309.02°)
OKLaboklab(39.37% 0.0675 -0.1717)
OKLCHoklch(39.37% 0.184 291.5)
XYZxyz(9.7742, 5.1337, 32.8170)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D219E #729E21
analogous
#21349E #4D219E #8C219E
triadic
#4D219E #9E4D21 #219E4D
tetradic
#4D219E #9E2134 #729E21 #219E8C
square
#4D219E #9E2134 #729E21 #219E8C
split-complementary
#4D219E #9E8C21 #349E21
monochromatic
#1C0C39 #34166B #4D219E #662CD1 #8A5CDD

Accessibility & contrast

On white

10.36
#4D219E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D219E
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D219E#FFFFFF#000000##FFFFFF
##4D219E1.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A1
Deuteranopia (green-blind)
#003D9C
Tritanopia (blue-blind)
#31455F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4d219e;
/* rgb */ color: rgb(77, 33, 158);
/* oklch */ color: oklch(39.4% 0.184 291.5);
Tailwind
colors: {
  custom: {
    50: '#8862bc',
    500: '#4d219e',
    950: '#000000',
  },
}
SCSS
$custom: #4d219e;
$custom-light: #8862bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4d219e",
  "rgb": {
    "r": 77,
    "g": 33,
    "b": 158
  },
  "hsl": {
    "h": 261.12,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39365,
    "c": 0.18448,
    "h": 291.5
  },
  "luminance": 0.05134
}

Semantic roles & 50–950 ramp

primary
#4D219E
secondary
#9DC159
accent
#E83FAD
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4D219E

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

Preview Lab → · Contrast checker → · Palette generator →

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