#4D217A#4D217A

#4D217A is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.1% C 0.143 H 302.3°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#4D217A
RGBrgb(77, 33, 122)
HSLhsl(270, 57%, 30%)
HSVhsv(270, 73%, 48%)
CMYKcmyk(36.9%, 73%, 0%, 52.2%)
CIE-LABlab(23.90, 38.74, -42.61)
CIE-LCHlch(23.90, 57.59, 312.28°)
OKLaboklab(36.12% 0.0766 -0.1213)
OKLCHoklch(36.12% 0.143 302.3)
XYZxyz(7.1164, 4.0706, 18.8194)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D217A #4E7A21
analogous
#21217A #4D217A #79217A
triadic
#4D217A #7A4D21 #217A4D
tetradic
#4D217A #7A2121 #4E7A21 #217A79
square
#4D217A #7A2121 #4E7A21 #217A79
split-complementary
#4D217A #7A7921 #217A21
monochromatic
#10071A #2F144A #4D217A #6B2EAA #8A48CD

Accessibility & contrast

On white

11.58
#4D217A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4D217A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D217A
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D217A#FFFFFF#000000##FFFFFF
##4D217A1.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387D
Deuteranopia (green-blind)
#003978
Tritanopia (blue-blind)
#44364B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4d217a;
/* rgb */ color: rgb(77, 33, 122);
/* oklch */ color: oklch(36.1% 0.143 302.3);
Tailwind
colors: {
  custom: {
    50: '#8360a1',
    500: '#4d217a',
    950: '#000000',
  },
}
SCSS
$custom: #4d217a;
$custom-light: #8360a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d217a",
  "rgb": {
    "r": 77,
    "g": 33,
    "b": 122
  },
  "hsl": {
    "h": 269.663,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.36117,
    "c": 0.14348,
    "h": 302.3
  },
  "luminance": 0.04071
}

Semantic roles & 50–950 ramp

primary
#4D217A
secondary
#7CAD4A
accent
#E14795
background
#F8F5FA
surface
#EFEAF3
border
#CAC6CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4D217A

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

Preview Lab → · Contrast checker → · Palette generator →

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