#4C21CA#4C21CA

#4C21CA is a dark, highly saturated violet. Relative luminance 0.069; OKLCH L 43.8% C 0.233 H 282.7°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#4C21CA
RGBrgb(76, 33, 202)
HSLhsl(255, 72%, 46%)
HSVhsv(255, 84%, 79%)
CMYKcmyk(62.4%, 83.7%, 0%, 20.8%)
CIE-LABlab(31.55, 60.24, -78.68)
CIE-LCHlch(31.55, 99.10, 307.44°)
OKLaboklab(43.75% 0.0511 -0.2269)
OKLCHoklch(43.75% 0.233 282.7)
XYZxyz(14.1817, 6.8875, 56.4478)
Luminance0.0689 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C21CA #9FCA21
analogous
#214BCA #4C21CA #A021CA
triadic
#4C21CA #CA4C21 #21CA4C
tetradic
#4C21CA #CA214B #9FCA21 #21CAA0
square
#4C21CA #CA214B #9FCA21 #21CAA0
split-complementary
#4C21CA #CAA021 #4BCA21
monochromatic
#241061 #381895 #4C21CA #6E47E1 #987CEA

Accessibility & contrast

On white

8.83
#4C21CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C21CA
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C21CA#FFFFFF#000000##FFFFFF
##4C21CA1.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FCE
Deuteranopia (green-blind)
#0044C7
Tritanopia (blue-blind)
#005779
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4c21ca;
/* rgb */ color: rgb(76, 33, 202);
/* oklch */ color: oklch(43.8% 0.233 282.7);
Tailwind
colors: {
  custom: {
    50: '#8f65dc',
    500: '#4c21ca',
    950: '#000000',
  },
}
SCSS
$custom: #4c21ca;
$custom-light: #8f65dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4c21ca",
  "rgb": {
    "r": 76,
    "g": 33,
    "b": 202
  },
  "hsl": {
    "h": 255.266,
    "s": 71.915,
    "l": 46.078
  },
  "oklch": {
    "l": 0.43754,
    "c": 0.23263,
    "h": 282.7
  },
  "luminance": 0.06888
}

Semantic roles & 50–950 ramp

primary
#4C21CA
secondary
#BAD275
accent
#EF39C0
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0E0615
muted
#7E7A83

Preview Lab

Preview with #4C21CA

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

Preview Lab → · Contrast checker → · Palette generator →

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