#A7257E#A7257E

#A7257E is a mid, vivid pink. Relative luminance 0.110; OKLCH L 50.5% C 0.186 H 344.0°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#A7257E
RGBrgb(167, 37, 126)
HSLhsl(319, 64%, 40%)
HSVhsv(319, 78%, 65%)
CMYKcmyk(0%, 77.8%, 24.6%, 34.5%)
CIE-LABlab(39.66, 59.28, -19.21)
CIE-LCHlch(39.66, 62.31, 342.04°)
OKLaboklab(50.46% 0.1793 -0.0513)
OKLCHoklch(50.46% 0.186 344)
XYZxyz(20.3646, 11.0472, 20.7945)
Luminance0.1105 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7257E #25A74E
analogous
#8F25A7 #A7257E #A7253D
triadic
#A7257E #7EA725 #257EA7
tetradic
#A7257E #A78F25 #25A74E #253DA7
square
#A7257E #A78F25 #25A74E #253DA7
split-complementary
#A7257E #3DA725 #25A78F
monochromatic
#430F32 #751A58 #A7257E #D337A1 #DE69B9

Accessibility & contrast

On white

6.54
#A7257E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#A7257E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A7257E
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7257E#FFFFFF#000000##FFFFFF
##A7257E1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355080
Deuteranopia (green-blind)
#5D657B
Tritanopia (blue-blind)
#B2244F
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #a7257e;
/* rgb */ color: rgb(167, 37, 126);
/* oklch */ color: oklch(50.5% 0.186 344.0);
Tailwind
colors: {
  custom: {
    50: '#c56ea3',
    500: '#a7257e',
    950: '#000000',
  },
}
SCSS
$custom: #a7257e;
$custom-light: #c56ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#a7257e",
  "rgb": {
    "r": 167,
    "g": 37,
    "b": 126
  },
  "hsl": {
    "h": 318.923,
    "s": 63.725,
    "l": 40
  },
  "oklch": {
    "l": 0.50459,
    "c": 0.18648,
    "h": 344
  },
  "luminance": 0.11045
}

Semantic roles & 50–950 ramp

primary
#A7257E
secondary
#64C482
accent
#E77541
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#13080F
muted
#827B7F

Preview Lab

Preview with #A7257E

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

Preview Lab → · Contrast checker → · Palette generator →

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