#4D21C9#4D21C9

#4D21C9 is a dark, highly saturated violet. Relative luminance 0.069; OKLCH L 43.7% C 0.231 H 283.2°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#4D21C9
RGBrgb(77, 33, 201)
HSLhsl(256, 72%, 46%)
HSVhsv(256, 84%, 79%)
CMYKcmyk(61.7%, 83.6%, 0%, 21.2%)
CIE-LABlab(31.54, 60.06, -78.12)
CIE-LCHlch(31.54, 98.54, 307.56°)
OKLaboklab(43.74% 0.053 -0.2253)
OKLCHoklch(43.74% 0.231 283.2)
XYZxyz(14.1438, 6.8815, 55.8300)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D21C9 #9DC921
analogous
#2149C9 #4D21C9 #A121C9
triadic
#4D21C9 #C94D21 #21C94D
tetradic
#4D21C9 #C92149 #9DC921 #21C9A1
square
#4D21C9 #C92149 #9DC921 #21C9A1
split-complementary
#4D21C9 #C9A121 #49C921
monochromatic
#251060 #391894 #4D21C9 #6F46E1 #987BE9

Accessibility & contrast

On white

8.84
#4D21C9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#4D21C9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D21C9
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D21C9#FFFFFF#000000##FFFFFF
##4D21C91.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FCD
Deuteranopia (green-blind)
#0045C6
Tritanopia (blue-blind)
#005778
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4d21c9;
/* rgb */ color: rgb(77, 33, 201);
/* oklch */ color: oklch(43.7% 0.231 283.2);
Tailwind
colors: {
  custom: {
    50: '#8f65db',
    500: '#4d21c9',
    950: '#000000',
  },
}
SCSS
$custom: #4d21c9;
$custom-light: #8f65db;
$custom-dark: #000000;
JSON
{
  "hex": "#4d21c9",
  "rgb": {
    "r": 77,
    "g": 33,
    "b": 201
  },
  "hsl": {
    "h": 255.714,
    "s": 71.795,
    "l": 45.882
  },
  "oklch": {
    "l": 0.43736,
    "c": 0.23142,
    "h": 283.2
  },
  "luminance": 0.06883
}

Semantic roles & 50–950 ramp

primary
#4D21C9
secondary
#B9D175
accent
#EF39BF
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0E0615
muted
#7E7A83

Preview Lab

Preview with #4D21C9

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

Preview Lab → · Contrast checker → · Palette generator →

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