#A7239C#A7239C

#A7239C is a mid, highly saturated purple. Relative luminance 0.118; OKLCH L 51.8% C 0.208 H 332.0°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#A7239C
RGBrgb(167, 35, 156)
HSLhsl(305, 65%, 40%)
HSVhsv(305, 79%, 65%)
CMYKcmyk(0%, 79%, 6.6%, 34.5%)
CIE-LABlab(40.93, 64.10, -35.56)
CIE-LCHlch(40.93, 73.30, 330.98°)
OKLaboklab(51.85% 0.1839 -0.0979)
OKLCHoklch(51.85% 0.208 332)
XYZxyz(22.5382, 11.8198, 32.5405)
Luminance0.1182 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7239C #23A72E
analogous
#7023A7 #A7239C #A7235A
triadic
#A7239C #9CA723 #239CA7
tetradic
#A7239C #A77023 #23A72E #235AA7
square
#A7239C #A77023 #23A72E #235AA7
split-complementary
#A7239C #5AA723 #23A770
monochromatic
#420E3D #74186D #A7239C #D433C7 #DF66D5

Accessibility & contrast

On white

6.24
#A7239C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#A7239C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A7239C
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7239C#FFFFFF#000000##FFFFFF
##A7239C1.006.243.366.24
#FFFFFF6.241.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17559F
Deuteranopia (green-blind)
#506799
Tritanopia (blue-blind)
#AE345F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a7239c;
/* rgb */ color: rgb(167, 35, 156);
/* oklch */ color: oklch(51.8% 0.208 332.0);
Tailwind
colors: {
  custom: {
    50: '#c56eb9',
    500: '#a7239c',
    950: '#000000',
  },
}
SCSS
$custom: #a7239c;
$custom-light: #c56eb9;
$custom-dark: #000000;
JSON
{
  "hex": "#a7239c",
  "rgb": {
    "r": 167,
    "g": 35,
    "b": 156
  },
  "hsl": {
    "h": 305,
    "s": 65.347,
    "l": 39.608
  },
  "oklch": {
    "l": 0.51848,
    "c": 0.20836,
    "h": 332
  },
  "luminance": 0.11818
}

Semantic roles & 50–950 ramp

primary
#A7239C
secondary
#61C46A
accent
#E84E3F
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #A7239C

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

Preview Lab → · Contrast checker → · Palette generator →

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