#A5238F#A5238F

#A5238F is a mid, vivid pink. Relative luminance 0.112; OKLCH L 50.8% C 0.198 H 336.2°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#A5238F
RGBrgb(165, 35, 143)
HSLhsl(310, 65%, 39%)
HSVhsv(310, 79%, 65%)
CMYKcmyk(0%, 78.8%, 13.3%, 35.3%)
CIE-LABlab(39.89, 61.72, -29.33)
CIE-LCHlch(39.89, 68.33, 334.58°)
OKLaboklab(50.82% 0.1813 -0.08)
OKLCHoklch(50.82% 0.198 336.2)
XYZxyz(21.0764, 11.1865, 27.0305)
Luminance0.1119 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5238F #23A539
analogous
#7A23A5 #A5238F #A5234E
triadic
#A5238F #8FA523 #238FA5
tetradic
#A5238F #A57A23 #23A539 #234EA5
square
#A5238F #A57A23 #23A539 #234EA5
split-complementary
#A5238F #4EA523 #23A57A
monochromatic
#400E37 #731863 #A5238F #D332B8 #DE64CA

Accessibility & contrast

On white

6.49
#A5238F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#A5238F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A5238F
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5238F#FFFFFF#000000##FFFFFF
##A5238F1.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255292
Deuteranopia (green-blind)
#55658C
Tritanopia (blue-blind)
#AE2D58
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a5238f;
/* rgb */ color: rgb(165, 35, 143);
/* oklch */ color: oklch(50.8% 0.198 336.2);
Tailwind
colors: {
  custom: {
    50: '#c46eb0',
    500: '#a5238f',
    950: '#000000',
  },
}
SCSS
$custom: #a5238f;
$custom-light: #c46eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#a5238f",
  "rgb": {
    "r": 165,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 310.154,
    "s": 65,
    "l": 39.216
  },
  "oklch": {
    "l": 0.50819,
    "c": 0.19821,
    "h": 336.2
  },
  "luminance": 0.11185
}

Semantic roles & 50–950 ramp

primary
#A5238F
secondary
#60C471
accent
#E85C40
background
#FCF7FA
surface
#F8EDF5
border
#D1C8CF
text
#130810
muted
#827B7F

Preview Lab

Preview with #A5238F

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

Preview Lab → · Contrast checker → · Palette generator →

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