#AB3098#AB3098

#AB3098 is a mid, vivid purple. Relative luminance 0.130; OKLCH L 53.3% C 0.194 H 334.9°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#AB3098
RGBrgb(171, 48, 152)
HSLhsl(309, 56%, 43%)
HSVhsv(309, 72%, 67%)
CMYKcmyk(0%, 71.9%, 11.1%, 32.9%)
CIE-LABlab(42.82, 60.35, -30.12)
CIE-LCHlch(42.82, 67.45, 333.48°)
OKLaboklab(53.27% 0.1759 -0.0823)
OKLCHoklch(53.27% 0.194 334.9)
XYZxyz(23.5193, 13.0409, 30.9781)
Luminance0.1304 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB3098 #30AB43
analogous
#8030AB #AB3098 #AB305B
triadic
#AB3098 #98AB30 #3098AB
tetradic
#AB3098 #AB8030 #30AB43 #305BAB
square
#AB3098 #AB8030 #30AB43 #305BAB
split-complementary
#AB3098 #5BAB30 #30AB80
monochromatic
#4B1543 #7B236E #AB3098 #CD4CB9 #DA7BCB

Accessibility & contrast

On white

5.82
#AB3098 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#AB3098 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB3098
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB3098#FFFFFF#000000##FFFFFF
##AB30981.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F599B
Deuteranopia (green-blind)
#5B6C95
Tritanopia (blue-blind)
#B33A60
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab3098;
/* rgb */ color: rgb(171, 48, 152);
/* oklch */ color: oklch(53.3% 0.194 334.9);
Tailwind
colors: {
  custom: {
    50: '#c874b6',
    500: '#ab3098',
    950: '#000000',
  },
}
SCSS
$custom: #ab3098;
$custom-light: #c874b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab3098",
  "rgb": {
    "r": 171,
    "g": 48,
    "b": 152
  },
  "hsl": {
    "h": 309.268,
    "s": 56.164,
    "l": 42.941
  },
  "oklch": {
    "l": 0.53273,
    "c": 0.19417,
    "h": 334.9
  },
  "luminance": 0.13039
}

Semantic roles & 50–950 ramp

primary
#AB3098
secondary
#74C380
accent
#DF6048
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB3098

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

Preview Lab → · Contrast checker → · Palette generator →

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