#4D217C#4D217C

#4D217C is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.146 H 301.5°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#4D217C
RGBrgb(77, 33, 124)
HSLhsl(269, 58%, 31%)
HSVhsv(269, 73%, 49%)
CMYKcmyk(37.9%, 73.4%, 0%, 51.4%)
CIE-LABlab(24.07, 39.27, -43.61)
CIE-LCHlch(24.07, 58.69, 312.00°)
OKLaboklab(36.28% 0.0762 -0.1243)
OKLCHoklch(36.28% 0.146 301.5)
XYZxyz(7.2416, 4.1207, 19.4787)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D217C #507C21
analogous
#21227C #4D217C #7A217C
triadic
#4D217C #7C4D21 #217C4D
tetradic
#4D217C #7C2122 #507C21 #217C7A
square
#4D217C #7C2122 #507C21 #217C7A
split-complementary
#4D217C #7C7A21 #227C21
monochromatic
#11071B #2F144C #4D217C #6B2EAC #8949CF

Accessibility & contrast

On white

11.51
#4D217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4D217C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D217C
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D217C#FFFFFF#000000##FFFFFF
##4D217C1.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d217c;
/* rgb */ color: rgb(77, 33, 124);
/* oklch */ color: oklch(36.3% 0.146 301.5);
Tailwind
colors: {
  custom: {
    50: '#8360a3',
    500: '#4d217c',
    950: '#000000',
  },
}
SCSS
$custom: #4d217c;
$custom-light: #8360a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d217c",
  "rgb": {
    "r": 77,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 269.011,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36284,
    "c": 0.1458,
    "h": 301.5
  },
  "luminance": 0.04121
}

Semantic roles & 50–950 ramp

primary
#4D217C
secondary
#7EAF4A
accent
#E14796
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4D217C

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

Preview Lab → · Contrast checker → · Palette generator →

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