#4D21A4#4D21A4

#4D21A4 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.9% C 0.191 H 290.1°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#4D21A4
RGBrgb(77, 33, 164)
HSLhsl(260, 66%, 39%)
HSVhsv(260, 80%, 64%)
CMYKcmyk(53%, 79.9%, 0%, 35.7%)
CIE-LABlab(27.70, 50.06, -62.45)
CIE-LCHlch(27.70, 80.03, 308.71°)
OKLaboklab(39.95% 0.0656 -0.1795)
OKLCHoklch(39.95% 0.191 290.1)
XYZxyz(10.3033, 5.3454, 35.6036)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D21A4 #78A421
analogous
#2136A4 #4D21A4 #8E21A4
triadic
#4D21A4 #A44D21 #21A44D
tetradic
#4D21A4 #A42136 #78A421 #21A48E
square
#4D21A4 #A42136 #78A421 #21A48E
split-complementary
#4D21A4 #A48E21 #36A421
monochromatic
#1D0C3E #351771 #4D21A4 #662DD5 #8B60DF

Accessibility & contrast

On white

10.15
#4D21A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#4D21A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D21A4
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D21A4#FFFFFF#000000##FFFFFF
##4D21A41.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A8
Deuteranopia (green-blind)
#003EA2
Tritanopia (blue-blind)
#2C4763
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4d21a4;
/* rgb */ color: rgb(77, 33, 164);
/* oklch */ color: oklch(39.9% 0.191 290.1);
Tailwind
colors: {
  custom: {
    50: '#8962c0',
    500: '#4d21a4',
    950: '#000000',
  },
}
SCSS
$custom: #4d21a4;
$custom-light: #8962c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d21a4",
  "rgb": {
    "r": 77,
    "g": 33,
    "b": 164
  },
  "hsl": {
    "h": 260.153,
    "s": 66.497,
    "l": 38.627
  },
  "oklch": {
    "l": 0.39948,
    "c": 0.19116,
    "h": 290.1
  },
  "luminance": 0.05346
}

Semantic roles & 50–950 ramp

primary
#4D21A4
secondary
#A1C45D
accent
#E93EB0
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0512
muted
#7D7A81

Preview Lab

Preview with #4D21A4

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

Preview Lab → · Contrast checker → · Palette generator →

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