#4D21AE#4D21AE

#4D21AE is a dark, highly saturated violet. Relative luminance 0.057; OKLCH L 40.9% C 0.202 H 288.0°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#4D21AE
RGBrgb(77, 33, 174)
HSLhsl(259, 68%, 41%)
HSVhsv(259, 81%, 68%)
CMYKcmyk(55.7%, 81%, 0%, 31.8%)
CIE-LABlab(28.70, 52.78, -66.83)
CIE-LCHlch(28.70, 85.15, 308.30°)
OKLaboklab(40.94% 0.0624 -0.1923)
OKLCHoklch(40.94% 0.202 288)
XYZxyz(11.2421, 5.7209, 40.5481)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D21AE #82AE21
analogous
#213CAE #4D21AE #9321AE
triadic
#4D21AE #AE4D21 #21AE4D
tetradic
#4D21AE #AE213C #82AE21 #21AE93
square
#4D21AE #AE213C #82AE21 #21AE93
split-complementary
#4D21AE #AE9321 #3CAE21
monochromatic
#1F0D47 #36177B #4D21AE #6734D8 #8E67E2

Accessibility & contrast

On white

9.79
#4D21AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#4D21AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D21AE
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D21AE#FFFFFF#000000##FFFFFF
##4D21AE1.009.792.149.79
#FFFFFF9.791.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B2
Deuteranopia (green-blind)
#0040AB
Tritanopia (blue-blind)
#224B68
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4d21ae;
/* rgb */ color: rgb(77, 33, 174);
/* oklch */ color: oklch(40.9% 0.202 288.0);
Tailwind
colors: {
  custom: {
    50: '#8a63c7',
    500: '#4d21ae',
    950: '#000000',
  },
}
SCSS
$custom: #4d21ae;
$custom-light: #8a63c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4d21ae",
  "rgb": {
    "r": 77,
    "g": 33,
    "b": 174
  },
  "hsl": {
    "h": 258.723,
    "s": 68.116,
    "l": 40.588
  },
  "oklch": {
    "l": 0.40942,
    "c": 0.20219,
    "h": 288
  },
  "luminance": 0.05721
}

Semantic roles & 50–950 ramp

primary
#4D21AE
secondary
#A8C863
accent
#EB3DB5
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4D21AE

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

Preview Lab → · Contrast checker → · Palette generator →

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