#A5238C#A5238C

#A5238C is a mid, vivid pink. Relative luminance 0.111; OKLCH L 50.7% C 0.196 H 337.4°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#A5238C
RGBrgb(165, 35, 140)
HSLhsl(312, 65%, 39%)
HSVhsv(312, 79%, 65%)
CMYKcmyk(0%, 78.8%, 15.2%, 35.3%)
CIE-LABlab(39.74, 61.29, -27.73)
CIE-LCHlch(39.74, 67.27, 335.65°)
OKLaboklab(50.66% 0.1811 -0.0755)
OKLCHoklch(50.66% 0.196 337.4)
XYZxyz(20.8521, 11.0969, 25.8496)
Luminance0.1109 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5238C #23A53C
analogous
#7D23A5 #A5238C #A5234B
triadic
#A5238C #8CA523 #238CA5
tetradic
#A5238C #A57D23 #23A53C #234BA5
square
#A5238C #A57D23 #23A53C #234BA5
split-complementary
#A5238C #4BA523 #23A57D
monochromatic
#400E36 #731861 #A5238C #D332B4 #DE64C7

Accessibility & contrast

On white

6.52
#A5238C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A5238C
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5238C#FFFFFF#000000##FFFFFF
##A5238C1.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28518F
Deuteranopia (green-blind)
#566589
Tritanopia (blue-blind)
#AE2C56
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a5238c;
/* rgb */ color: rgb(165, 35, 140);
/* oklch */ color: oklch(50.7% 0.196 337.4);
Tailwind
colors: {
  custom: {
    50: '#c46dae',
    500: '#a5238c',
    950: '#000000',
  },
}
SCSS
$custom: #a5238c;
$custom-light: #c46dae;
$custom-dark: #000000;
JSON
{
  "hex": "#a5238c",
  "rgb": {
    "r": 165,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 311.538,
    "s": 65,
    "l": 39.216
  },
  "oklch": {
    "l": 0.50663,
    "c": 0.19616,
    "h": 337.4
  },
  "luminance": 0.11095
}

Semantic roles & 50–950 ramp

primary
#A5238C
secondary
#60C473
accent
#E86040
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A5238C

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

Preview Lab → · Contrast checker → · Palette generator →

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