#A7238A#A7238A

#A7238A is a mid, vivid pink. Relative luminance 0.113; OKLCH L 50.9% C 0.196 H 338.9°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#A7238A
RGBrgb(167, 35, 138)
HSLhsl(313, 65%, 40%)
HSVhsv(313, 79%, 65%)
CMYKcmyk(0%, 79%, 17.4%, 34.5%)
CIE-LABlab(40.01, 61.47, -26.07)
CIE-LCHlch(40.01, 66.77, 337.02°)
OKLaboklab(50.89% 0.1828 -0.0707)
OKLCHoklch(50.89% 0.196 338.9)
XYZxyz(21.1254, 11.2546, 25.0996)
Luminance0.1125 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7238A #23A740
analogous
#8223A7 #A7238A #A72348
triadic
#A7238A #8AA723 #238AA7
tetradic
#A7238A #A78223 #23A740 #2348A7
square
#A7238A #A78223 #23A740 #2348A7
split-complementary
#A7238A #48A723 #23A782
monochromatic
#420E36 #741860 #A7238A #D433B1 #DF66C4

Accessibility & contrast

On white

6.46
#A7238A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#A7238A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A7238A
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7238A#FFFFFF#000000##FFFFFF
##A7238A1.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B518D
Deuteranopia (green-blind)
#586687
Tritanopia (blue-blind)
#B12A55
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a7238a;
/* rgb */ color: rgb(167, 35, 138);
/* oklch */ color: oklch(50.9% 0.196 338.9);
Tailwind
colors: {
  custom: {
    50: '#c56eac',
    500: '#a7238a',
    950: '#000000',
  },
}
SCSS
$custom: #a7238a;
$custom-light: #c56eac;
$custom-dark: #000000;
JSON
{
  "hex": "#a7238a",
  "rgb": {
    "r": 167,
    "g": 35,
    "b": 138
  },
  "hsl": {
    "h": 313.182,
    "s": 65.347,
    "l": 39.608
  },
  "oklch": {
    "l": 0.50887,
    "c": 0.19597,
    "h": 338.9
  },
  "luminance": 0.11253
}

Semantic roles & 50–950 ramp

primary
#A7238A
secondary
#61C477
accent
#E8653F
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A7238A

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

Preview Lab → · Contrast checker → · Palette generator →

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