#A7238B#A7238B

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

Color values

HEX#A7238B
RGBrgb(167, 35, 139)
HSLhsl(313, 65%, 40%)
HSVhsv(313, 79%, 65%)
CMYKcmyk(0%, 79%, 16.8%, 34.5%)
CIE-LABlab(40.05, 61.61, -26.61)
CIE-LCHlch(40.05, 67.11, 336.64°)
OKLaboklab(50.94% 0.1829 -0.0722)
OKLCHoklch(50.94% 0.197 338.5)
XYZxyz(21.1981, 11.2837, 25.4827)
Luminance0.1128 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7238B #23A73F
analogous
#8123A7 #A7238B #A72349
triadic
#A7238B #8BA723 #238BA7
tetradic
#A7238B #A78123 #23A73F #2349A7
square
#A7238B #A78123 #23A73F #2349A7
split-complementary
#A7238B #49A723 #23A781
monochromatic
#420E37 #741861 #A7238B #D433B2 #DF66C5

Accessibility & contrast

On white

6.45
#A7238B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A7238B
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7238B#FFFFFF#000000##FFFFFF
##A7238B1.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a7238b;
/* rgb */ color: rgb(167, 35, 139);
/* oklch */ color: oklch(50.9% 0.197 338.5);
Tailwind
colors: {
  custom: {
    50: '#c56ead',
    500: '#a7238b',
    950: '#000000',
  },
}
SCSS
$custom: #a7238b;
$custom-light: #c56ead;
$custom-dark: #000000;
JSON
{
  "hex": "#a7238b",
  "rgb": {
    "r": 167,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 312.727,
    "s": 65.347,
    "l": 39.608
  },
  "oklch": {
    "l": 0.50938,
    "c": 0.19663,
    "h": 338.5
  },
  "luminance": 0.11282
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A7238B

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

Preview Lab → · Contrast checker → · Palette generator →

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