#A2238B#A2238B

#A2238B is a mid, vivid pink. Relative luminance 0.107; OKLCH L 50.1% C 0.194 H 336.7°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#A2238B
RGBrgb(162, 35, 139)
HSLhsl(311, 64%, 39%)
HSVhsv(311, 78%, 64%)
CMYKcmyk(0%, 78.4%, 14.2%, 36.5%)
CIE-LABlab(39.16, 60.46, -28.08)
CIE-LCHlch(39.16, 66.66, 335.09°)
OKLaboklab(50.12% 0.1781 -0.0765)
OKLCHoklch(50.12% 0.194 336.7)
XYZxyz(20.1619, 10.7494, 25.4341)
Luminance0.1075 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2238B #23A23A
analogous
#7923A2 #A2238B #A2234B
triadic
#A2238B #8BA223 #238BA2
tetradic
#A2238B #A27923 #23A23A #234BA2
square
#A2238B #A27923 #23A23A #234BA2
split-complementary
#A2238B #4BA223 #23A279
monochromatic
#3D0D35 #701860 #A2238B #D230B5 #DD62C7

Accessibility & contrast

On white

6.67
#A2238B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#A2238B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A2238B
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2238B#FFFFFF#000000##FFFFFF
##A2238B1.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26508E
Deuteranopia (green-blind)
#546388
Tritanopia (blue-blind)
#AB2C55
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #a2238b;
/* rgb */ color: rgb(162, 35, 139);
/* oklch */ color: oklch(50.1% 0.194 336.7);
Tailwind
colors: {
  custom: {
    50: '#c16dad',
    500: '#a2238b',
    950: '#000000',
  },
}
SCSS
$custom: #a2238b;
$custom-light: #c16dad;
$custom-dark: #000000;
JSON
{
  "hex": "#a2238b",
  "rgb": {
    "r": 162,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 310.866,
    "s": 64.467,
    "l": 38.627
  },
  "oklch": {
    "l": 0.50124,
    "c": 0.19382,
    "h": 336.7
  },
  "luminance": 0.10748
}

Semantic roles & 50–950 ramp

primary
#A2238B
secondary
#5EC271
accent
#E75F40
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A2238B

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

Preview Lab → · Contrast checker → · Palette generator →

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