#4D217B#4D217B

#4D217B is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.2% C 0.145 H 301.9°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#4D217B
RGBrgb(77, 33, 123)
HSLhsl(269, 58%, 31%)
HSVhsv(269, 73%, 48%)
CMYKcmyk(37.4%, 73.2%, 0%, 51.8%)
CIE-LABlab(23.98, 39.00, -43.11)
CIE-LCHlch(23.98, 58.14, 312.14°)
OKLaboklab(36.2% 0.0764 -0.1228)
OKLCHoklch(36.2% 0.145 301.9)
XYZxyz(7.1787, 4.0955, 19.1474)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D217B #4F7B21
analogous
#21227B #4D217B #7A217B
triadic
#4D217B #7B4D21 #217B4D
tetradic
#4D217B #7B2122 #4F7B21 #217B7A
square
#4D217B #7B2122 #4F7B21 #217B7A
split-complementary
#4D217B #7B7A21 #227B21
monochromatic
#11071A #2F144B #4D217B #6B2EAB #8A48CE

Accessibility & contrast

On white

11.54
#4D217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D217B
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D217B#FFFFFF#000000##FFFFFF
##4D217B1.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387E
Deuteranopia (green-blind)
#003979
Tritanopia (blue-blind)
#43374B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4d217b;
/* rgb */ color: rgb(77, 33, 123);
/* oklch */ color: oklch(36.2% 0.145 301.9);
Tailwind
colors: {
  custom: {
    50: '#8360a2',
    500: '#4d217b',
    950: '#000000',
  },
}
SCSS
$custom: #4d217b;
$custom-light: #8360a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4d217b",
  "rgb": {
    "r": 77,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 269.333,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.362,
    "c": 0.14463,
    "h": 301.9
  },
  "luminance": 0.04096
}

Semantic roles & 50–950 ramp

primary
#4D217B
secondary
#7DAE4A
accent
#E14796
background
#F8F5FA
surface
#EFEAF3
border
#CAC6CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4D217B

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

Preview Lab → · Contrast checker → · Palette generator →

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