#4D217D#4D217D

#4D217D is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.147 H 301.2°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#4D217D
RGBrgb(77, 33, 125)
HSLhsl(269, 58%, 31%)
HSVhsv(269, 74%, 49%)
CMYKcmyk(38.4%, 73.6%, 0%, 51%)
CIE-LABlab(24.15, 39.53, -44.11)
CIE-LCHlch(24.15, 59.23, 311.86°)
OKLaboklab(36.37% 0.076 -0.1258)
OKLCHoklch(36.37% 0.147 301.2)
XYZxyz(7.3052, 4.1461, 19.8135)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D217D #517D21
analogous
#21237D #4D217D #7B217D
triadic
#4D217D #7D4D21 #217D4D
tetradic
#4D217D #7D2123 #517D21 #217D7B
square
#4D217D #7D2123 #517D21 #217D7B
split-complementary
#4D217D #7D7B21 #237D21
monochromatic
#11071C #2F144D #4D217D #6B2EAD #8949CF

Accessibility & contrast

On white

11.48
#4D217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D217D
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D217D#FFFFFF#000000##FFFFFF
##4D217D1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#00397B
Tritanopia (blue-blind)
#43374C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4d217d;
/* rgb */ color: rgb(77, 33, 125);
/* oklch */ color: oklch(36.4% 0.147 301.2);
Tailwind
colors: {
  custom: {
    50: '#8360a3',
    500: '#4d217d',
    950: '#000000',
  },
}
SCSS
$custom: #4d217d;
$custom-light: #8360a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d217d",
  "rgb": {
    "r": 77,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 268.696,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36368,
    "c": 0.14696,
    "h": 301.2
  },
  "luminance": 0.04146
}

Semantic roles & 50–950 ramp

primary
#4D217D
secondary
#7FB04A
accent
#E14697
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4D217D

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

Preview Lab → · Contrast checker → · Palette generator →

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