#4D218E#4D218E

#4D218E is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.9% C 0.166 H 295.7°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#4D218E
RGBrgb(77, 33, 142)
HSLhsl(264, 62%, 34%)
HSVhsv(264, 77%, 56%)
CMYKcmyk(45.8%, 76.8%, 0%, 44.3%)
CIE-LABlab(25.62, 44.08, -52.37)
CIE-LCHlch(25.62, 68.45, 310.09°)
OKLaboklab(37.86% 0.0721 -0.15)
OKLCHoklch(37.86% 0.166 295.7)
XYZxyz(8.4856, 4.6183, 26.0303)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D218E #628E21
analogous
#212C8E #4D218E #84218E
triadic
#4D218E #8E4D21 #218E4D
tetradic
#4D218E #8E212C #628E21 #218E84
square
#4D218E #8E212C #628E21 #218E84
split-complementary
#4D218E #8E8421 #2C8E21
monochromatic
#170A2B #32155C #4D218E #682DC0 #8852D7

Accessibility & contrast

On white

10.92
#4D218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#4D218E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D218E
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D218E#FFFFFF#000000##FFFFFF
##4D218E1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#003B8C
Tritanopia (blue-blind)
#3B3E56
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4d218e;
/* rgb */ color: rgb(77, 33, 142);
/* oklch */ color: oklch(37.9% 0.166 295.7);
Tailwind
colors: {
  custom: {
    50: '#8661b0',
    500: '#4d218e',
    950: '#000000',
  },
}
SCSS
$custom: #4d218e;
$custom-light: #8661b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d218e",
  "rgb": {
    "r": 77,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 264.22,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.37863,
    "c": 0.16646,
    "h": 295.7
  },
  "luminance": 0.04618
}

Semantic roles & 50–950 ramp

primary
#4D218E
secondary
#90BA50
accent
#E542A4
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4D218E

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

Preview Lab → · Contrast checker → · Palette generator →

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