#A7238F#A7238F

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

Color values

HEX#A7238F
RGBrgb(167, 35, 143)
HSLhsl(311, 65%, 40%)
HSVhsv(311, 79%, 65%)
CMYKcmyk(0%, 79%, 14.4%, 34.5%)
CIE-LABlab(40.25, 62.17, -28.74)
CIE-LCHlch(40.25, 68.49, 335.19°)
OKLaboklab(51.14% 0.1833 -0.0783)
OKLCHoklch(51.14% 0.199 336.9)
XYZxyz(21.4957, 11.4028, 27.0501)
Luminance0.1140 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7238F #23A73B
analogous
#7D23A7 #A7238F #A7234D
triadic
#A7238F #8FA723 #238FA7
tetradic
#A7238F #A77D23 #23A73B #234DA7
square
#A7238F #A77D23 #23A73B #234DA7
split-complementary
#A7238F #4DA723 #23A77D
monochromatic
#420E38 #741864 #A7238F #D433B7 #DF66C9

Accessibility & contrast

On white

6.40
#A7238F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#A7238F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A7238F
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7238F#FFFFFF#000000##FFFFFF
##A7238F1.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275292
Deuteranopia (green-blind)
#56668C
Tritanopia (blue-blind)
#B02D58
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a7238f;
/* rgb */ color: rgb(167, 35, 143);
/* oklch */ color: oklch(51.1% 0.199 336.9);
Tailwind
colors: {
  custom: {
    50: '#c56eb0',
    500: '#a7238f',
    950: '#000000',
  },
}
SCSS
$custom: #a7238f;
$custom-light: #c56eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#a7238f",
  "rgb": {
    "r": 167,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 310.909,
    "s": 65.347,
    "l": 39.608
  },
  "oklch": {
    "l": 0.51143,
    "c": 0.19929,
    "h": 336.9
  },
  "luminance": 0.11401
}

Semantic roles & 50–950 ramp

primary
#A7238F
secondary
#61C473
accent
#E85E3F
background
#FCF7FA
surface
#F9EDF5
border
#D2C8CF
text
#130810
muted
#827B7F

Preview Lab

Preview with #A7238F

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

Preview Lab → · Contrast checker → · Palette generator →

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