#A5238B#A5238B

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

Color values

HEX#A5238B
RGBrgb(165, 35, 139)
HSLhsl(312, 65%, 39%)
HSVhsv(312, 79%, 65%)
CMYKcmyk(0%, 78.8%, 15.8%, 35.3%)
CIE-LABlab(39.69, 61.15, -27.20)
CIE-LCHlch(39.69, 66.92, 336.02°)
OKLaboklab(50.61% 0.181 -0.0739)
OKLCHoklch(50.61% 0.196 337.8)
XYZxyz(20.7788, 11.0675, 25.4630)
Luminance0.1106 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5238B #23A53D
analogous
#7E23A5 #A5238B #A5234A
triadic
#A5238B #8BA523 #238BA5
tetradic
#A5238B #A57E23 #23A53D #234AA5
square
#A5238B #A57E23 #23A53D #234AA5
split-complementary
#A5238B #4AA523 #23A57E
monochromatic
#400E36 #731860 #A5238B #D332B3 #DE64C6

Accessibility & contrast

On white

6.54
#A5238B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A5238B
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5238B#FFFFFF#000000##FFFFFF
##A5238B1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29518E
Deuteranopia (green-blind)
#566588
Tritanopia (blue-blind)
#AE2B55
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #a5238b;
/* rgb */ color: rgb(165, 35, 139);
/* oklch */ color: oklch(50.6% 0.196 337.8);
Tailwind
colors: {
  custom: {
    50: '#c46dad',
    500: '#a5238b',
    950: '#000000',
  },
}
SCSS
$custom: #a5238b;
$custom-light: #c46dad;
$custom-dark: #000000;
JSON
{
  "hex": "#a5238b",
  "rgb": {
    "r": 165,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 312,
    "s": 65,
    "l": 39.216
  },
  "oklch": {
    "l": 0.50611,
    "c": 0.1955,
    "h": 337.8
  },
  "luminance": 0.11065
}

Semantic roles & 50–950 ramp

primary
#A5238B
secondary
#60C474
accent
#E86140
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A5238B

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

Preview Lab → · Contrast checker → · Palette generator →

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