#A21BB3#A21BB3

#A21BB3 is a mid, highly saturated purple. Relative luminance 0.117; OKLCH L 52.0% C 0.230 H 322.7°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#A21BB3
RGBrgb(162, 27, 179)
HSLhsl(293, 74%, 40%)
HSVhsv(293, 85%, 70%)
CMYKcmyk(9.5%, 84.9%, 0%, 29.8%)
CIE-LABlab(40.77, 68.80, -49.61)
CIE-LCHlch(40.77, 84.82, 324.21°)
OKLaboklab(52.01% 0.1827 -0.139)
OKLCHoklch(52.01% 0.23 322.7)
XYZxyz(23.4281, 11.7214, 43.6675)
Luminance0.1172 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A21BB3 #2CB31B
analogous
#561BB3 #A21BB3 #B31B78
triadic
#A21BB3 #B3A21B #1BB3A2
tetradic
#A21BB3 #B3561B #2CB31B #1B78B3
square
#A21BB3 #B3561B #2CB31B #1B78B3
split-complementary
#A21BB3 #78B31B #1BB356
monochromatic
#420B49 #72137E #A21BB3 #CB2CDF #D861E7

Accessibility & contrast

On white

6.28
#A21BB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#A21BB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A21BB3
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A21BB3#FFFFFF#000000##FFFFFF
##A21BB31.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B7
Deuteranopia (green-blind)
#3865B0
Tritanopia (blue-blind)
#A43E6B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a21bb3;
/* rgb */ color: rgb(162, 27, 179);
/* oklch */ color: oklch(52.0% 0.230 322.7);
Tailwind
colors: {
  custom: {
    50: '#c26cca',
    500: '#a21bb3',
    950: '#000000',
  },
}
SCSS
$custom: #a21bb3;
$custom-light: #c26cca;
$custom-dark: #000000;
JSON
{
  "hex": "#a21bb3",
  "rgb": {
    "r": 162,
    "g": 27,
    "b": 179
  },
  "hsl": {
    "h": 293.289,
    "s": 73.786,
    "l": 40.392
  },
  "oklch": {
    "l": 0.52013,
    "c": 0.22951,
    "h": 322.7
  },
  "luminance": 0.1172
}

Semantic roles & 50–950 ramp

primary
#A21BB3
secondary
#6ACC5E
accent
#F0374C
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130813
muted
#827B82

Preview Lab

Preview with #A21BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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