#4D218F#4D218F

#4D218F is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.168 H 295.4°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#4D218F
RGBrgb(77, 33, 143)
HSLhsl(264, 63%, 35%)
HSVhsv(264, 77%, 56%)
CMYKcmyk(46.2%, 76.9%, 0%, 43.9%)
CIE-LABlab(25.71, 44.35, -52.84)
CIE-LCHlch(25.71, 68.99, 310.01°)
OKLaboklab(37.95% 0.0719 -0.1514)
OKLCHoklch(37.95% 0.168 295.4)
XYZxyz(8.5610, 4.6484, 26.4275)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D218F #638F21
analogous
#212C8F #4D218F #84218F
triadic
#4D218F #8F4D21 #218F4D
tetradic
#4D218F #8F212C #638F21 #218F84
square
#4D218F #8F212C #638F21 #218F84
split-complementary
#4D218F #8F8421 #2C8F21
monochromatic
#170A2C #32165D #4D218F #682CC1 #8853D7

Accessibility & contrast

On white

10.88
#4D218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#4D218F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D218F
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D218F#FFFFFF#000000##FFFFFF
##4D218F1.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#003B8D
Tritanopia (blue-blind)
#3A3E57
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4d218f;
/* rgb */ color: rgb(77, 33, 143);
/* oklch */ color: oklch(38.0% 0.168 295.4);
Tailwind
colors: {
  custom: {
    50: '#8661b1',
    500: '#4d218f',
    950: '#000000',
  },
}
SCSS
$custom: #4d218f;
$custom-light: #8661b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d218f",
  "rgb": {
    "r": 77,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 264,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.37954,
    "c": 0.1676,
    "h": 295.4
  },
  "luminance": 0.04649
}

Semantic roles & 50–950 ramp

primary
#4D218F
secondary
#90BB51
accent
#E642A4
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4D218F

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

Preview Lab → · Contrast checker → · Palette generator →

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