#A7238E#A7238E

#A7238E is a mid, vivid pink. Relative luminance 0.114; OKLCH L 51.1% C 0.199 H 337.3°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#A7238E
RGBrgb(167, 35, 142)
HSLhsl(311, 65%, 40%)
HSVhsv(311, 79%, 65%)
CMYKcmyk(0%, 79%, 15%, 34.5%)
CIE-LABlab(40.20, 62.03, -28.21)
CIE-LCHlch(40.20, 68.14, 335.54°)
OKLaboklab(51.09% 0.1832 -0.0768)
OKLCHoklch(51.09% 0.199 337.3)
XYZxyz(21.4203, 11.3726, 26.6530)
Luminance0.1137 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7238E #23A73C
analogous
#7E23A7 #A7238E #A7234C
triadic
#A7238E #8EA723 #238EA7
tetradic
#A7238E #A77E23 #23A73C #234CA7
square
#A7238E #A77E23 #23A73C #234CA7
split-complementary
#A7238E #4CA723 #23A77E
monochromatic
#420E38 #741863 #A7238E #D433B6 #DF66C8

Accessibility & contrast

On white

6.41
#A7238E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#A7238E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A7238E
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7238E#FFFFFF#000000##FFFFFF
##A7238E1.006.413.276.41
#FFFFFF6.411.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285291
Deuteranopia (green-blind)
#57668B
Tritanopia (blue-blind)
#B02C57
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a7238e;
/* rgb */ color: rgb(167, 35, 142);
/* oklch */ color: oklch(51.1% 0.199 337.3);
Tailwind
colors: {
  custom: {
    50: '#c56eaf',
    500: '#a7238e',
    950: '#000000',
  },
}
SCSS
$custom: #a7238e;
$custom-light: #c56eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#a7238e",
  "rgb": {
    "r": 167,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 311.364,
    "s": 65.347,
    "l": 39.608
  },
  "oklch": {
    "l": 0.51091,
    "c": 0.19862,
    "h": 337.3
  },
  "luminance": 0.11371
}

Semantic roles & 50–950 ramp

primary
#A7238E
secondary
#61C474
accent
#E85F3F
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A7238E

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

Preview Lab → · Contrast checker → · Palette generator →

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