#A5238D#A5238D

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

Color values

HEX#A5238D
RGBrgb(165, 35, 141)
HSLhsl(311, 65%, 39%)
HSVhsv(311, 79%, 65%)
CMYKcmyk(0%, 78.8%, 14.5%, 35.3%)
CIE-LABlab(39.79, 61.43, -28.27)
CIE-LCHlch(39.79, 67.62, 335.29°)
OKLaboklab(50.72% 0.1812 -0.077)
OKLCHoklch(50.72% 0.197 337)
XYZxyz(20.9262, 11.1265, 26.2397)
Luminance0.1112 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5238D #23A53B
analogous
#7C23A5 #A5238D #A5234C
triadic
#A5238D #8DA523 #238DA5
tetradic
#A5238D #A57C23 #23A53B #234CA5
square
#A5238D #A57C23 #23A53B #234CA5
split-complementary
#A5238D #4CA523 #23A57C
monochromatic
#400E37 #731862 #A5238D #D332B6 #DE64C8

Accessibility & contrast

On white

6.51
#A5238D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A5238D
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5238D#FFFFFF#000000##FFFFFF
##A5238D1.006.513.226.51
#FFFFFF6.511.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275190
Deuteranopia (green-blind)
#56658A
Tritanopia (blue-blind)
#AE2C57
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a5238d;
/* rgb */ color: rgb(165, 35, 141);
/* oklch */ color: oklch(50.7% 0.197 337.0);
Tailwind
colors: {
  custom: {
    50: '#c46eae',
    500: '#a5238d',
    950: '#000000',
  },
}
SCSS
$custom: #a5238d;
$custom-light: #c46eae;
$custom-dark: #000000;
JSON
{
  "hex": "#a5238d",
  "rgb": {
    "r": 165,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 311.077,
    "s": 65,
    "l": 39.216
  },
  "oklch": {
    "l": 0.50715,
    "c": 0.19684,
    "h": 337
  },
  "luminance": 0.11124
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A5238D

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

Preview Lab → · Contrast checker → · Palette generator →

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