#A5238E#A5238E

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

Color values

HEX#A5238E
RGBrgb(165, 35, 142)
HSLhsl(311, 65%, 39%)
HSVhsv(311, 79%, 65%)
CMYKcmyk(0%, 78.8%, 13.9%, 35.3%)
CIE-LABlab(39.84, 61.58, -28.80)
CIE-LCHlch(39.84, 67.98, 334.93°)
OKLaboklab(50.77% 0.1813 -0.0785)
OKLCHoklch(50.77% 0.198 336.6)
XYZxyz(21.0010, 11.1564, 26.6333)
Luminance0.1115 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5238E #23A53A
analogous
#7B23A5 #A5238E #A5234D
triadic
#A5238E #8EA523 #238EA5
tetradic
#A5238E #A57B23 #23A53A #234DA5
square
#A5238E #A57B23 #23A53A #234DA5
split-complementary
#A5238E #4DA523 #23A57B
monochromatic
#400E37 #731863 #A5238E #D332B7 #DE64C9

Accessibility & contrast

On white

6.50
#A5238E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#A5238E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A5238E
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5238E#FFFFFF#000000##FFFFFF
##A5238E1.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265191
Deuteranopia (green-blind)
#55658B
Tritanopia (blue-blind)
#AE2D57
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a5238e;
/* rgb */ color: rgb(165, 35, 142);
/* oklch */ color: oklch(50.8% 0.198 336.6);
Tailwind
colors: {
  custom: {
    50: '#c46eaf',
    500: '#a5238e',
    950: '#000000',
  },
}
SCSS
$custom: #a5238e;
$custom-light: #c46eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#a5238e",
  "rgb": {
    "r": 165,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 310.615,
    "s": 65,
    "l": 39.216
  },
  "oklch": {
    "l": 0.50767,
    "c": 0.19752,
    "h": 336.6
  },
  "luminance": 0.11154
}

Semantic roles & 50–950 ramp

primary
#A5238E
secondary
#60C472
accent
#E85E40
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A5238E

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

Preview Lab → · Contrast checker → · Palette generator →

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