#A01798#A01798

#A01798 is a mid, highly saturated purple. Relative luminance 0.104; OKLCH L 49.8% C 0.212 H 331.0°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#A01798
RGBrgb(160, 23, 152)
HSLhsl(304, 75%, 36%)
HSVhsv(304, 86%, 63%)
CMYKcmyk(0%, 85.6%, 5%, 37.3%)
CIE-LABlab(38.47, 64.92, -37.11)
CIE-LCHlch(38.47, 74.78, 330.24°)
OKLaboklab(49.79% 0.1852 -0.1025)
OKLCHoklch(49.79% 0.212 331)
XYZxyz(20.4711, 10.3551, 30.6203)
Luminance0.1035 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A01798 #17A01F
analogous
#6317A0 #A01798 #A01753
triadic
#A01798 #98A017 #1798A0
tetradic
#A01798 #A06317 #17A01F #1753A0
square
#A01798 #A06317 #17A01F #1753A0
split-complementary
#A01798 #53A017 #17A063
monochromatic
#350832 #6A0F65 #A01798 #D61FCB #E54CDC

Accessibility & contrast

On white

6.84
#A01798 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#A01798 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A01798
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A01798#FFFFFF#000000##FFFFFF
##A017981.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9B
Deuteranopia (green-blind)
#486195
Tritanopia (blue-blind)
#A72D5A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #a01798;
/* rgb */ color: rgb(160, 23, 152);
/* oklch */ color: oklch(49.8% 0.212 331.0);
Tailwind
colors: {
  custom: {
    50: '#c06ab7',
    500: '#a01798',
    950: '#000000',
  },
}
SCSS
$custom: #a01798;
$custom-light: #c06ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#a01798",
  "rgb": {
    "r": 160,
    "g": 23,
    "b": 152
  },
  "hsl": {
    "h": 303.504,
    "s": 74.863,
    "l": 35.882
  },
  "oklch": {
    "l": 0.49794,
    "c": 0.21168,
    "h": 331
  },
  "luminance": 0.10353
}

Semantic roles & 50–950 ramp

primary
#A01798
secondary
#4CC753
accent
#F14136
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130711
muted
#827A80

Preview Lab

Preview with #A01798

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

Preview Lab → · Contrast checker → · Palette generator →

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