#A2238A#A2238A

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

Color values

HEX#A2238A
RGBrgb(162, 35, 138)
HSLhsl(311, 64%, 39%)
HSVhsv(311, 78%, 64%)
CMYKcmyk(0%, 78.4%, 14.8%, 36.5%)
CIE-LABlab(39.11, 60.31, -27.54)
CIE-LCHlch(39.11, 66.30, 335.46°)
OKLaboklab(50.07% 0.178 -0.075)
OKLCHoklch(50.07% 0.193 337.2)
XYZxyz(20.0892, 10.7203, 25.0511)
Luminance0.1072 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2238A #23A23B
analogous
#7A23A2 #A2238A #A2234A
triadic
#A2238A #8AA223 #238AA2
tetradic
#A2238A #A27A23 #23A23B #234AA2
square
#A2238A #A27A23 #23A23B #234AA2
split-complementary
#A2238A #4AA223 #23A27A
monochromatic
#3D0D34 #70185F #A2238A #D230B4 #DD62C6

Accessibility & contrast

On white

6.68
#A2238A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#A2238A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A2238A
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2238A#FFFFFF#000000##FFFFFF
##A2238A1.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27508D
Deuteranopia (green-blind)
#546387
Tritanopia (blue-blind)
#AB2C55
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #a2238a;
/* rgb */ color: rgb(162, 35, 138);
/* oklch */ color: oklch(50.1% 0.193 337.2);
Tailwind
colors: {
  custom: {
    50: '#c16dac',
    500: '#a2238a',
    950: '#000000',
  },
}
SCSS
$custom: #a2238a;
$custom-light: #c16dac;
$custom-dark: #000000;
JSON
{
  "hex": "#a2238a",
  "rgb": {
    "r": 162,
    "g": 35,
    "b": 138
  },
  "hsl": {
    "h": 311.339,
    "s": 64.467,
    "l": 38.627
  },
  "oklch": {
    "l": 0.50072,
    "c": 0.19314,
    "h": 337.2
  },
  "luminance": 0.10718
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A2238A

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

Preview Lab → · Contrast checker → · Palette generator →

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