#4C21AE#4C21AE

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

Color values

HEX#4C21AE
RGBrgb(76, 33, 174)
HSLhsl(258, 68%, 41%)
HSVhsv(258, 81%, 68%)
CMYKcmyk(56.3%, 81%, 0%, 31.8%)
CIE-LABlab(28.59, 52.66, -67.01)
CIE-LCHlch(28.59, 85.22, 308.16°)
OKLaboklab(40.84% 0.0608 -0.1929)
OKLCHoklch(40.84% 0.202 287.5)
XYZxyz(11.1621, 5.6796, 40.5443)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C21AE #83AE21
analogous
#213CAE #4C21AE #9221AE
triadic
#4C21AE #AE4C21 #21AE4C
tetradic
#4C21AE #AE213C #83AE21 #21AE92
square
#4C21AE #AE213C #83AE21 #21AE92
split-complementary
#4C21AE #AE9221 #3CAE21
monochromatic
#1F0D47 #36177B #4C21AE #6634D8 #8D67E2

Accessibility & contrast

On white

9.83
#4C21AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C21AE
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C21AE#FFFFFF#000000##FFFFFF
##4C21AE1.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B2
Deuteranopia (green-blind)
#0040AC
Tritanopia (blue-blind)
#1F4B68
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4c21ae;
/* rgb */ color: rgb(76, 33, 174);
/* oklch */ color: oklch(40.8% 0.202 287.5);
Tailwind
colors: {
  custom: {
    50: '#8a63c7',
    500: '#4c21ae',
    950: '#000000',
  },
}
SCSS
$custom: #4c21ae;
$custom-light: #8a63c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4c21ae",
  "rgb": {
    "r": 76,
    "g": 33,
    "b": 174
  },
  "hsl": {
    "h": 258.298,
    "s": 68.116,
    "l": 40.588
  },
  "oklch": {
    "l": 0.40842,
    "c": 0.20225,
    "h": 287.5
  },
  "luminance": 0.0568
}

Semantic roles & 50–950 ramp

primary
#4C21AE
secondary
#A9C863
accent
#EB3DB6
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4C21AE

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

Preview Lab → · Contrast checker → · Palette generator →

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