#A7239D#A7239D

#A7239D is a mid, highly saturated purple. Relative luminance 0.119; OKLCH L 51.9% C 0.209 H 331.6°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#A7239D
RGBrgb(167, 35, 157)
HSLhsl(305, 65%, 40%)
HSVhsv(305, 79%, 65%)
CMYKcmyk(0%, 79%, 6%, 34.5%)
CIE-LABlab(40.98, 64.25, -36.08)
CIE-LCHlch(40.98, 73.69, 330.68°)
OKLaboklab(51.9% 0.1839 -0.0994)
OKLCHoklch(51.9% 0.209 331.6)
XYZxyz(22.6232, 11.8538, 32.9882)
Luminance0.1185 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7239D #23A72D
analogous
#6F23A7 #A7239D #A7235B
triadic
#A7239D #9DA723 #239DA7
tetradic
#A7239D #A76F23 #23A72D #235BA7
square
#A7239D #A76F23 #23A72D #235BA7
split-complementary
#A7239D #5BA723 #23A76F
monochromatic
#420E3E #74186D #A7239D #D433C8 #DF66D6

Accessibility & contrast

On white

6.23
#A7239D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#A7239D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A7239D
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7239D#FFFFFF#000000##FFFFFF
##A7239D1.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1555A0
Deuteranopia (green-blind)
#50679A
Tritanopia (blue-blind)
#AE3560
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #a7239d;
/* rgb */ color: rgb(167, 35, 157);
/* oklch */ color: oklch(51.9% 0.209 331.6);
Tailwind
colors: {
  custom: {
    50: '#c56eba',
    500: '#a7239d',
    950: '#000000',
  },
}
SCSS
$custom: #a7239d;
$custom-light: #c56eba;
$custom-dark: #000000;
JSON
{
  "hex": "#a7239d",
  "rgb": {
    "r": 167,
    "g": 35,
    "b": 157
  },
  "hsl": {
    "h": 304.545,
    "s": 65.347,
    "l": 39.608
  },
  "oklch": {
    "l": 0.51904,
    "c": 0.20909,
    "h": 331.6
  },
  "luminance": 0.11852
}

Semantic roles & 50–950 ramp

primary
#A7239D
secondary
#61C469
accent
#E84C3F
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #A7239D

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

Preview Lab → · Contrast checker → · Palette generator →

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