#A2278E#A2278E

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

Color values

HEX#A2278E
RGBrgb(162, 39, 142)
HSLhsl(310, 61%, 39%)
HSVhsv(310, 76%, 64%)
CMYKcmyk(0%, 75.9%, 12.3%, 36.5%)
CIE-LABlab(39.73, 59.69, -29.02)
CIE-LCHlch(39.73, 66.37, 334.07°)
OKLaboklab(50.58% 0.1747 -0.0792)
OKLCHoklch(50.58% 0.192 335.6)
XYZxyz(20.5086, 11.0873, 26.6459)
Luminance0.1109 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2278E #27A23B
analogous
#7927A2 #A2278E #A22751
triadic
#A2278E #8EA227 #278EA2
tetradic
#A2278E #A27927 #27A23B #2751A2
square
#A2278E #A27927 #27A23B #2751A2
split-complementary
#A2278E #51A227 #27A279
monochromatic
#3F0F38 #711B63 #A2278E #CF37B6 #DB69C8

Accessibility & contrast

On white

6.53
#A2278E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A2278E
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2278E#FFFFFF#000000##FFFFFF
##A2278E1.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285291
Deuteranopia (green-blind)
#54648B
Tritanopia (blue-blind)
#AA3158
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a2278e;
/* rgb */ color: rgb(162, 39, 142);
/* oklch */ color: oklch(50.6% 0.192 335.6);
Tailwind
colors: {
  custom: {
    50: '#c16faf',
    500: '#a2278e',
    950: '#000000',
  },
}
SCSS
$custom: #a2278e;
$custom-light: #c16faf;
$custom-dark: #000000;
JSON
{
  "hex": "#a2278e",
  "rgb": {
    "r": 162,
    "g": 39,
    "b": 142
  },
  "hsl": {
    "h": 309.756,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.50584,
    "c": 0.19186,
    "h": 335.6
  },
  "luminance": 0.11085
}

Semantic roles & 50–950 ramp

primary
#A2278E
secondary
#64C173
accent
#E45E43
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A2278E

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

Preview Lab → · Contrast checker → · Palette generator →

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