#4D217F#4D217F

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

Color values

HEX#4D217F
RGBrgb(77, 33, 127)
HSLhsl(268, 59%, 31%)
HSVhsv(268, 74%, 50%)
CMYKcmyk(39.4%, 74%, 0%, 50.2%)
CIE-LABlab(24.31, 40.06, -45.11)
CIE-LCHlch(24.31, 60.33, 311.61°)
OKLaboklab(36.54% 0.0756 -0.1287)
OKLCHoklch(36.54% 0.149 300.4)
XYZxyz(7.4342, 4.1977, 20.4931)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D217F #537F21
analogous
#21247F #4D217F #7C217F
triadic
#4D217F #7F4D21 #217F4D
tetradic
#4D217F #7F2124 #537F21 #217F7C
square
#4D217F #7F2124 #537F21 #217F7C
split-complementary
#4D217F #7F7C21 #247F21
monochromatic
#12081E #30144E #4D217F #6A2EB0 #894AD0

Accessibility & contrast

On white

11.42
#4D217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#4D217F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D217F
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D217F#FFFFFF#000000##FFFFFF
##4D217F1.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d217f;
/* rgb */ color: rgb(77, 33, 127);
/* oklch */ color: oklch(36.5% 0.149 300.4);
Tailwind
colors: {
  custom: {
    50: '#8460a5',
    500: '#4d217f',
    950: '#000000',
  },
}
SCSS
$custom: #4d217f;
$custom-light: #8460a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4d217f",
  "rgb": {
    "r": 77,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 268.085,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36538,
    "c": 0.14926,
    "h": 300.4
  },
  "luminance": 0.04198
}

Semantic roles & 50–950 ramp

primary
#4D217F
secondary
#81B24A
accent
#E24699
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4D217F

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

Preview Lab → · Contrast checker → · Palette generator →

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