#A5238A#A5238A

#A5238A is a mid, vivid pink. Relative luminance 0.110; OKLCH L 50.6% C 0.195 H 338.2°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#A5238A
RGBrgb(165, 35, 138)
HSLhsl(312, 65%, 39%)
HSVhsv(312, 79%, 65%)
CMYKcmyk(0%, 78.8%, 16.4%, 35.3%)
CIE-LABlab(39.65, 61.00, -26.66)
CIE-LCHlch(39.65, 66.58, 336.39°)
OKLaboklab(50.56% 0.1809 -0.0724)
OKLCHoklch(50.56% 0.195 338.2)
XYZxyz(20.7060, 11.0384, 25.0800)
Luminance0.1104 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5238A #23A53E
analogous
#7F23A5 #A5238A #A52349
triadic
#A5238A #8AA523 #238AA5
tetradic
#A5238A #A57F23 #23A53E #2349A5
square
#A5238A #A57F23 #23A53E #2349A5
split-complementary
#A5238A #49A523 #23A57F
monochromatic
#400E36 #731860 #A5238A #D332B2 #DE64C5

Accessibility & contrast

On white

6.55
#A5238A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#A5238A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A5238A
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5238A#FFFFFF#000000##FFFFFF
##A5238A1.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A518D
Deuteranopia (green-blind)
#576487
Tritanopia (blue-blind)
#AE2B55
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #a5238a;
/* rgb */ color: rgb(165, 35, 138);
/* oklch */ color: oklch(50.6% 0.195 338.2);
Tailwind
colors: {
  custom: {
    50: '#c46dac',
    500: '#a5238a',
    950: '#000000',
  },
}
SCSS
$custom: #a5238a;
$custom-light: #c46dac;
$custom-dark: #000000;
JSON
{
  "hex": "#a5238a",
  "rgb": {
    "r": 165,
    "g": 35,
    "b": 138
  },
  "hsl": {
    "h": 312.462,
    "s": 65,
    "l": 39.216
  },
  "oklch": {
    "l": 0.5056,
    "c": 0.19483,
    "h": 338.2
  },
  "luminance": 0.11036
}

Semantic roles & 50–950 ramp

primary
#A5238A
secondary
#60C475
accent
#E86340
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A5238A

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

Preview Lab → · Contrast checker → · Palette generator →

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