#4D217E#4D217E

#4D217E is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.5% C 0.148 H 300.8°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#4D217E
RGBrgb(77, 33, 126)
HSLhsl(268, 58%, 31%)
HSVhsv(268, 74%, 49%)
CMYKcmyk(38.9%, 73.8%, 0%, 50.6%)
CIE-LABlab(24.23, 39.80, -44.61)
CIE-LCHlch(24.23, 59.78, 311.73°)
OKLaboklab(36.45% 0.0758 -0.1272)
OKLCHoklch(36.45% 0.148 300.8)
XYZxyz(7.3694, 4.1718, 20.1516)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D217E #527E21
analogous
#21237E #4D217E #7B217E
triadic
#4D217E #7E4D21 #217E4D
tetradic
#4D217E #7E2123 #527E21 #217E7B
square
#4D217E #7E2123 #527E21 #217E7B
split-complementary
#4D217E #7E7B21 #237E21
monochromatic
#12081D #2F144E #4D217E #6B2EAE #894AD0

Accessibility & contrast

On white

11.45
#4D217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#4D217E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D217E
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D217E#FFFFFF#000000##FFFFFF
##4D217E1.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#00397C
Tritanopia (blue-blind)
#42384D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4d217e;
/* rgb */ color: rgb(77, 33, 126);
/* oklch */ color: oklch(36.5% 0.148 300.8);
Tailwind
colors: {
  custom: {
    50: '#8460a4',
    500: '#4d217e',
    950: '#000000',
  },
}
SCSS
$custom: #4d217e;
$custom-light: #8460a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d217e",
  "rgb": {
    "r": 77,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 268.387,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36453,
    "c": 0.14811,
    "h": 300.8
  },
  "luminance": 0.04172
}

Semantic roles & 50–950 ramp

primary
#4D217E
secondary
#80B14A
accent
#E24698
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4D217E

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

Preview Lab → · Contrast checker → · Palette generator →

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