#4D218B#4D218B

#4D218B is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.163 H 296.6°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#4D218B
RGBrgb(77, 33, 139)
HSLhsl(265, 62%, 34%)
HSVhsv(265, 76%, 55%)
CMYKcmyk(44.6%, 76.3%, 0%, 45.5%)
CIE-LABlab(25.35, 43.27, -50.95)
CIE-LCHlch(25.35, 66.84, 310.34°)
OKLaboklab(37.59% 0.0729 -0.1458)
OKLCHoklch(37.59% 0.163 296.6)
XYZxyz(8.2634, 4.5294, 24.8600)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D218B #5F8B21
analogous
#212A8B #4D218B #82218B
triadic
#4D218B #8B4D21 #218B4D
tetradic
#4D218B #8B212A #5F8B21 #218B82
square
#4D218B #8B212A #5F8B21 #218B82
split-complementary
#4D218B #8B8221 #2A8B21
monochromatic
#160A28 #32155A #4D218B #682DBC #8851D6

Accessibility & contrast

On white

11.02
#4D218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#4D218B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D218B
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D218B#FFFFFF#000000##FFFFFF
##4D218B1.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003B89
Tritanopia (blue-blind)
#3C3D54
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4d218b;
/* rgb */ color: rgb(77, 33, 139);
/* oklch */ color: oklch(37.6% 0.163 296.6);
Tailwind
colors: {
  custom: {
    50: '#8561ae',
    500: '#4d218b',
    950: '#000000',
  },
}
SCSS
$custom: #4d218b;
$custom-light: #8561ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4d218b",
  "rgb": {
    "r": 77,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 264.906,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37591,
    "c": 0.16305,
    "h": 296.6
  },
  "luminance": 0.0453
}

Semantic roles & 50–950 ramp

primary
#4D218B
secondary
#8DB94F
accent
#E543A2
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4D218B

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

Preview Lab → · Contrast checker → · Palette generator →

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