#A2238C#A2238C

#A2238C is a mid, vivid pink. Relative luminance 0.108; OKLCH L 50.2% C 0.195 H 336.3°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#A2238C
RGBrgb(162, 35, 140)
HSLhsl(310, 64%, 39%)
HSVhsv(310, 78%, 64%)
CMYKcmyk(0%, 78.4%, 13.6%, 36.5%)
CIE-LABlab(39.21, 60.60, -28.61)
CIE-LCHlch(39.21, 67.02, 334.73°)
OKLaboklab(50.18% 0.1782 -0.078)
OKLCHoklch(50.18% 0.195 336.3)
XYZxyz(20.2353, 10.7788, 25.8207)
Luminance0.1078 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2238C #23A239
analogous
#7823A2 #A2238C #A2234C
triadic
#A2238C #8CA223 #238CA2
tetradic
#A2238C #A27823 #23A239 #234CA2
square
#A2238C #A27823 #23A239 #234CA2
split-complementary
#A2238C #4CA223 #23A278
monochromatic
#3D0D35 #701861 #A2238C #D230B6 #DD62C8

Accessibility & contrast

On white

6.66
#A2238C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#A2238C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A2238C
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2238C#FFFFFF#000000##FFFFFF
##A2238C1.006.663.166.66
#FFFFFF6.661.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26508F
Deuteranopia (green-blind)
#536389
Tritanopia (blue-blind)
#AB2D56
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #a2238c;
/* rgb */ color: rgb(162, 35, 140);
/* oklch */ color: oklch(50.2% 0.195 336.3);
Tailwind
colors: {
  custom: {
    50: '#c16dae',
    500: '#a2238c',
    950: '#000000',
  },
}
SCSS
$custom: #a2238c;
$custom-light: #c16dae;
$custom-dark: #000000;
JSON
{
  "hex": "#a2238c",
  "rgb": {
    "r": 162,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 310.394,
    "s": 64.467,
    "l": 38.627
  },
  "oklch": {
    "l": 0.50176,
    "c": 0.1945,
    "h": 336.3
  },
  "luminance": 0.10777
}

Semantic roles & 50–950 ramp

primary
#A2238C
secondary
#5EC270
accent
#E75D40
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A2238C

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

Preview Lab → · Contrast checker → · Palette generator →

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