#A7238C#A7238C

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

Color values

HEX#A7238C
RGBrgb(167, 35, 140)
HSLhsl(312, 65%, 40%)
HSVhsv(312, 79%, 65%)
CMYKcmyk(0%, 79%, 16.2%, 34.5%)
CIE-LABlab(40.10, 61.75, -27.14)
CIE-LCHlch(40.10, 67.45, 336.27°)
OKLaboklab(50.99% 0.183 -0.0737)
OKLCHoklch(50.99% 0.197 338.1)
XYZxyz(21.2715, 11.3131, 25.8692)
Luminance0.1131 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7238C #23A73E
analogous
#8023A7 #A7238C #A7234A
triadic
#A7238C #8CA723 #238CA7
tetradic
#A7238C #A78023 #23A73E #234AA7
square
#A7238C #A78023 #23A73E #234AA7
split-complementary
#A7238C #4AA723 #23A780
monochromatic
#420E37 #741862 #A7238C #D433B3 #DF66C6

Accessibility & contrast

On white

6.44
#A7238C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#A7238C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A7238C
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7238C#FFFFFF#000000##FFFFFF
##A7238C1.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A528F
Deuteranopia (green-blind)
#586689
Tritanopia (blue-blind)
#B12B56
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a7238c;
/* rgb */ color: rgb(167, 35, 140);
/* oklch */ color: oklch(51.0% 0.197 338.1);
Tailwind
colors: {
  custom: {
    50: '#c56eae',
    500: '#a7238c',
    950: '#000000',
  },
}
SCSS
$custom: #a7238c;
$custom-light: #c56eae;
$custom-dark: #000000;
JSON
{
  "hex": "#a7238c",
  "rgb": {
    "r": 167,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 312.273,
    "s": 65.347,
    "l": 39.608
  },
  "oklch": {
    "l": 0.50989,
    "c": 0.19729,
    "h": 338.1
  },
  "luminance": 0.11311
}

Semantic roles & 50–950 ramp

primary
#A7238C
secondary
#61C476
accent
#E8623F
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A7238C

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

Preview Lab → · Contrast checker → · Palette generator →

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