#A2278F#A2278F

#A2278F is a mid, vivid purple. Relative luminance 0.111; OKLCH L 50.6% C 0.193 H 335.2°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#A2278F
RGBrgb(162, 39, 143)
HSLhsl(309, 61%, 39%)
HSVhsv(309, 76%, 64%)
CMYKcmyk(0%, 75.9%, 11.7%, 36.5%)
CIE-LABlab(39.78, 59.84, -29.55)
CIE-LCHlch(39.78, 66.74, 333.72°)
OKLaboklab(50.64% 0.1748 -0.0807)
OKLCHoklch(50.64% 0.193 335.2)
XYZxyz(20.5840, 11.1174, 27.0431)
Luminance0.1112 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2278F #27A23A
analogous
#7827A2 #A2278F #A22752
triadic
#A2278F #8FA227 #278FA2
tetradic
#A2278F #A27827 #27A23A #2752A2
square
#A2278F #A27827 #27A23A #2752A2
split-complementary
#A2278F #52A227 #27A278
monochromatic
#3F0F38 #711B63 #A2278F #CF37B7 #DB69C9

Accessibility & contrast

On white

6.52
#A2278F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#A2278F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A2278F
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2278F#FFFFFF#000000##FFFFFF
##A2278F1.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275292
Deuteranopia (green-blind)
#53648C
Tritanopia (blue-blind)
#AA3159
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a2278f;
/* rgb */ color: rgb(162, 39, 143);
/* oklch */ color: oklch(50.6% 0.193 335.2);
Tailwind
colors: {
  custom: {
    50: '#c16fb0',
    500: '#a2278f',
    950: '#000000',
  },
}
SCSS
$custom: #a2278f;
$custom-light: #c16fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#a2278f",
  "rgb": {
    "r": 162,
    "g": 39,
    "b": 143
  },
  "hsl": {
    "h": 309.268,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.50636,
    "c": 0.19257,
    "h": 335.2
  },
  "luminance": 0.11116
}

Semantic roles & 50–950 ramp

primary
#A2278F
secondary
#64C172
accent
#E45C43
background
#FCF7FA
surface
#F8EDF5
border
#D1C8CF
text
#130810
muted
#827B7F

Preview Lab

Preview with #A2278F

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

Preview Lab → · Contrast checker → · Palette generator →

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