#A23797#A23797

#A23797 is a mid, vivid purple. Relative luminance 0.126; OKLCH L 52.5% C 0.179 H 332.2°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#A23797
RGBrgb(162, 55, 151)
HSLhsl(306, 49%, 43%)
HSVhsv(306, 66%, 64%)
CMYKcmyk(0%, 66%, 6.8%, 36.5%)
CIE-LABlab(42.23, 55.31, -30.55)
CIE-LCHlch(42.23, 63.19, 331.08°)
OKLaboklab(52.54% 0.1586 -0.0838)
OKLCHoklch(52.54% 0.179 332.2)
XYZxyz(21.8524, 12.6498, 30.5629)
Luminance0.1265 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A23797 #37A242
analogous
#7737A2 #A23797 #A23762
triadic
#A23797 #97A237 #3797A2
tetradic
#A23797 #A27737 #37A242 #3762A2
square
#A23797 #A27737 #37A242 #3762A2
split-complementary
#A23797 #62A237 #37A277
monochromatic
#471842 #74276C #A23797 #C452B8 #D480CB

Accessibility & contrast

On white

5.95
#A23797 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#A23797 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A23797
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A23797#FFFFFF#000000##FFFFFF
##A237971.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325A9A
Deuteranopia (green-blind)
#576994
Tritanopia (blue-blind)
#A94162
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #a23797;
/* rgb */ color: rgb(162, 55, 151);
/* oklch */ color: oklch(52.5% 0.179 332.2);
Tailwind
colors: {
  custom: {
    50: '#c176b6',
    500: '#a23797',
    950: '#000000',
  },
}
SCSS
$custom: #a23797;
$custom-light: #c176b6;
$custom-dark: #000000;
JSON
{
  "hex": "#a23797",
  "rgb": {
    "r": 162,
    "g": 55,
    "b": 151
  },
  "hsl": {
    "h": 306.168,
    "s": 49.309,
    "l": 42.549
  },
  "oklch": {
    "l": 0.5254,
    "c": 0.17932,
    "h": 332.2
  },
  "luminance": 0.12648
}

Semantic roles & 50–950 ramp

primary
#A23797
secondary
#78BD7F
accent
#D95D4F
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130911
muted
#827B80

Preview Lab

Preview with #A23797

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

Preview Lab → · Contrast checker → · Palette generator →

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