#4B21AE#4B21AE

#4B21AE is a dark, highly saturated violet. Relative luminance 0.056; OKLCH L 40.7% C 0.202 H 287.0°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#4B21AE
RGBrgb(75, 33, 174)
HSLhsl(258, 68%, 41%)
HSVhsv(258, 81%, 68%)
CMYKcmyk(56.9%, 81%, 0%, 31.8%)
CIE-LABlab(28.48, 52.54, -67.19)
CIE-LCHlch(28.48, 85.29, 308.02°)
OKLaboklab(40.74% 0.0592 -0.1935)
OKLCHoklch(40.74% 0.202 287)
XYZxyz(11.0832, 5.6389, 40.5406)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B21AE #84AE21
analogous
#213EAE #4B21AE #9121AE
triadic
#4B21AE #AE4B21 #21AE4B
tetradic
#4B21AE #AE213E #84AE21 #21AE91
square
#4B21AE #AE213E #84AE21 #21AE91
split-complementary
#4B21AE #AE9121 #3EAE21
monochromatic
#1F0D47 #35177B #4B21AE #6534D8 #8C67E2

Accessibility & contrast

On white

9.87
#4B21AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4B21AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B21AE
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B21AE#FFFFFF#000000##FFFFFF
##4B21AE1.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B2
Deuteranopia (green-blind)
#003FAC
Tritanopia (blue-blind)
#1C4B68
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4b21ae;
/* rgb */ color: rgb(75, 33, 174);
/* oklch */ color: oklch(40.7% 0.202 287.0);
Tailwind
colors: {
  custom: {
    50: '#8963c7',
    500: '#4b21ae',
    950: '#000000',
  },
}
SCSS
$custom: #4b21ae;
$custom-light: #8963c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4b21ae",
  "rgb": {
    "r": 75,
    "g": 33,
    "b": 174
  },
  "hsl": {
    "h": 257.872,
    "s": 68.116,
    "l": 40.588
  },
  "oklch": {
    "l": 0.40743,
    "c": 0.20232,
    "h": 287
  },
  "luminance": 0.0564
}

Semantic roles & 50–950 ramp

primary
#4B21AE
secondary
#AAC863
accent
#EB3DB7
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4B21AE

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

Preview Lab → · Contrast checker → · Palette generator →

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