#A7238D#A7238D

#A7238D is a mid, vivid pink. Relative luminance 0.113; OKLCH L 51.0% C 0.198 H 337.7°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#A7238D
RGBrgb(167, 35, 141)
HSLhsl(312, 65%, 40%)
HSVhsv(312, 79%, 65%)
CMYKcmyk(0%, 79%, 15.6%, 34.5%)
CIE-LABlab(40.15, 61.89, -27.68)
CIE-LCHlch(40.15, 67.79, 335.90°)
OKLaboklab(51.04% 0.1831 -0.0753)
OKLCHoklch(51.04% 0.198 337.7)
XYZxyz(21.3456, 11.3427, 26.2593)
Luminance0.1134 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7238D #23A73D
analogous
#7F23A7 #A7238D #A7234B
triadic
#A7238D #8DA723 #238DA7
tetradic
#A7238D #A77F23 #23A73D #234BA7
square
#A7238D #A77F23 #23A73D #234BA7
split-complementary
#A7238D #4BA723 #23A77F
monochromatic
#420E38 #741862 #A7238D #D433B4 #DF66C7

Accessibility & contrast

On white

6.43
#A7238D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A7238D
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7238D#FFFFFF#000000##FFFFFF
##A7238D1.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295290
Deuteranopia (green-blind)
#57668A
Tritanopia (blue-blind)
#B02B57
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a7238d;
/* rgb */ color: rgb(167, 35, 141);
/* oklch */ color: oklch(51.0% 0.198 337.7);
Tailwind
colors: {
  custom: {
    50: '#c56eae',
    500: '#a7238d',
    950: '#000000',
  },
}
SCSS
$custom: #a7238d;
$custom-light: #c56eae;
$custom-dark: #000000;
JSON
{
  "hex": "#a7238d",
  "rgb": {
    "r": 167,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 311.818,
    "s": 65.347,
    "l": 39.608
  },
  "oklch": {
    "l": 0.5104,
    "c": 0.19796,
    "h": 337.7
  },
  "luminance": 0.11341
}

Semantic roles & 50–950 ramp

primary
#A7238D
secondary
#61C475
accent
#E8613F
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A7238D

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

Preview Lab → · Contrast checker → · Palette generator →

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