#4A21CA#4A21CA

#4A21CA is a dark, highly saturated violet. Relative luminance 0.068; OKLCH L 43.6% C 0.233 H 281.9°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#4A21CA
RGBrgb(74, 33, 202)
HSLhsl(255, 72%, 46%)
HSVhsv(255, 84%, 79%)
CMYKcmyk(63.4%, 83.7%, 0%, 20.8%)
CIE-LABlab(31.36, 60.07, -79.00)
CIE-LCHlch(31.36, 99.24, 307.25°)
OKLaboklab(43.58% 0.0481 -0.2279)
OKLCHoklch(43.58% 0.233 281.9)
XYZxyz(14.0252, 6.8068, 56.4404)
Luminance0.0681 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A21CA #A1CA21
analogous
#214CCA #4A21CA #9E21CA
triadic
#4A21CA #CA4A21 #21CA4A
tetradic
#4A21CA #CA214C #A1CA21 #21CA9E
square
#4A21CA #CA214C #A1CA21 #21CA9E
split-complementary
#4A21CA #CA9E21 #4CCA21
monochromatic
#231061 #371895 #4A21CA #6D47E1 #967CEA

Accessibility & contrast

On white

8.89
#4A21CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#4A21CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A21CA
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A21CA#FFFFFF#000000##FFFFFF
##4A21CA1.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.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: #4a21ca;
/* rgb */ color: rgb(74, 33, 202);
/* oklch */ color: oklch(43.6% 0.233 281.9);
Tailwind
colors: {
  custom: {
    50: '#8e65dc',
    500: '#4a21ca',
    950: '#000000',
  },
}
SCSS
$custom: #4a21ca;
$custom-light: #8e65dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4a21ca",
  "rgb": {
    "r": 74,
    "g": 33,
    "b": 202
  },
  "hsl": {
    "h": 254.556,
    "s": 71.915,
    "l": 46.078
  },
  "oklch": {
    "l": 0.43581,
    "c": 0.23292,
    "h": 281.9
  },
  "luminance": 0.06808
}

Semantic roles & 50–950 ramp

primary
#4A21CA
secondary
#BBD275
accent
#EF39C3
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0E0615
muted
#7E7A83

Preview Lab

Preview with #4A21CA

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

Preview Lab → · Contrast checker → · Palette generator →

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