#A21EB3#A21EB3

#A21EB3 is a mid, highly saturated purple. Relative luminance 0.119; OKLCH L 52.2% C 0.227 H 322.7°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#A21EB3
RGBrgb(162, 30, 179)
HSLhsl(293, 71%, 41%)
HSVhsv(293, 83%, 70%)
CMYKcmyk(9.5%, 83.2%, 0%, 29.8%)
CIE-LABlab(41.00, 68.12, -49.24)
CIE-LCHlch(41.00, 84.05, 324.14°)
OKLaboklab(52.18% 0.1808 -0.1379)
OKLCHoklch(52.18% 0.227 322.7)
XYZxyz(23.5004, 11.8660, 43.6917)
Luminance0.1187 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A21EB3 #2FB31E
analogous
#571EB3 #A21EB3 #B31E79
triadic
#A21EB3 #B3A21E #1EB3A2
tetradic
#A21EB3 #B3571E #2FB31E #1E79B3
square
#A21EB3 #B3571E #2FB31E #1E79B3
split-complementary
#A21EB3 #79B31E #1EB357
monochromatic
#430C4A #73157F #A21EB3 #C932DD #D766E5

Accessibility & contrast

On white

6.23
#A21EB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#A21EB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A21EB3
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A21EB3#FFFFFF#000000##FFFFFF
##A21EB31.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B7
Deuteranopia (green-blind)
#3965B0
Tritanopia (blue-blind)
#A43F6B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #a21eb3;
/* rgb */ color: rgb(162, 30, 179);
/* oklch */ color: oklch(52.2% 0.227 322.7);
Tailwind
colors: {
  custom: {
    50: '#c26dca',
    500: '#a21eb3',
    950: '#000000',
  },
}
SCSS
$custom: #a21eb3;
$custom-light: #c26dca;
$custom-dark: #000000;
JSON
{
  "hex": "#a21eb3",
  "rgb": {
    "r": 162,
    "g": 30,
    "b": 179
  },
  "hsl": {
    "h": 293.154,
    "s": 71.292,
    "l": 40.98
  },
  "oklch": {
    "l": 0.52177,
    "c": 0.22739,
    "h": 322.7
  },
  "luminance": 0.11865
}

Semantic roles & 50–950 ramp

primary
#A21EB3
secondary
#6ECB62
accent
#EE3A4E
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130813
muted
#827B82

Preview Lab

Preview with #A21EB3

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

Preview Lab → · Contrast checker → · Palette generator →

#A21EB3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva