#4D21AF#4D21AF

#4D21AF is a dark, highly saturated violet. Relative luminance 0.058; OKLCH L 41.0% C 0.203 H 287.8°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#4D21AF
RGBrgb(77, 33, 175)
HSLhsl(259, 68%, 41%)
HSVhsv(259, 81%, 69%)
CMYKcmyk(56%, 81.1%, 0%, 31.4%)
CIE-LABlab(28.80, 53.05, -67.26)
CIE-LCHlch(28.80, 85.66, 308.26°)
OKLaboklab(41.04% 0.062 -0.1936)
OKLCHoklch(41.04% 0.203 287.8)
XYZxyz(11.3400, 5.7600, 41.0634)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D21AF #83AF21
analogous
#213CAF #4D21AF #9421AF
triadic
#4D21AF #AF4D21 #21AF4D
tetradic
#4D21AF #AF213C #83AF21 #21AF94
square
#4D21AF #AF213C #83AF21 #21AF94
split-complementary
#4D21AF #AF9421 #3CAF21
monochromatic
#200E48 #36177C #4D21AF #6734D9 #8E68E3

Accessibility & contrast

On white

9.76
#4D21AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#4D21AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D21AF
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D21AF#FFFFFF#000000##FFFFFF
##4D21AF1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B3
Deuteranopia (green-blind)
#0040AC
Tritanopia (blue-blind)
#214C69
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4d21af;
/* rgb */ color: rgb(77, 33, 175);
/* oklch */ color: oklch(41.0% 0.203 287.8);
Tailwind
colors: {
  custom: {
    50: '#8a63c8',
    500: '#4d21af',
    950: '#000000',
  },
}
SCSS
$custom: #4d21af;
$custom-light: #8a63c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4d21af",
  "rgb": {
    "r": 77,
    "g": 33,
    "b": 175
  },
  "hsl": {
    "h": 258.592,
    "s": 68.269,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41043,
    "c": 0.20329,
    "h": 287.8
  },
  "luminance": 0.05761
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4D21AF

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

Preview Lab → · Contrast checker → · Palette generator →

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