#AB98CA#AB98CA

#AB98CA is a light, moderate violet. Relative luminance 0.354; OKLCH L 71.4% C 0.074 H 301.9°. Best body text is #000000 at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#AB98CA
RGBrgb(171, 152, 202)
HSLhsl(263, 32%, 69%)
HSVhsv(263, 25%, 79%)
CMYKcmyk(15.3%, 24.8%, 0%, 20.8%)
CIE-LABlab(66.04, 16.90, -23.11)
CIE-LCHlch(66.04, 28.63, 306.17°)
OKLaboklab(71.38% 0.0394 -0.0632)
OKLCHoklch(71.38% 0.074 301.9)
XYZxyz(38.6813, 35.3787, 60.6566)
Luminance0.3538 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB98CA #B7CA98
analogous
#989ECA #AB98CA #C498CA
triadic
#AB98CA #CAAB98 #98CAAB
tetradic
#AB98CA #CA989E #B7CA98 #98CAC4
square
#AB98CA #CA989E #B7CA98 #98CAC4
split-complementary
#AB98CA #CAC498 #9ECA98
monochromatic
#6B4F99 #8A70B5 #AB98CA #CCC0DF #EDE9F4

Accessibility & contrast

On white

2.60
#AB98CA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.08
#AB98CA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB98CA
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB98CA#FFFFFF#000000##000000
##AB98CA1.002.608.088.08
#FFFFFF2.601.0021.0021.00
#0000008.0821.001.001.00
##0000008.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8EA0CC
Deuteranopia (green-blind)
#91A0C9
Tritanopia (blue-blind)
#A69FA9
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #ab98ca;
/* rgb */ color: rgb(171, 152, 202);
/* oklch */ color: oklch(71.4% 0.074 301.9);
Tailwind
colors: {
  custom: {
    50: '#c4b6da',
    500: '#ab98ca',
    950: '#000000',
  },
}
SCSS
$custom: #ab98ca;
$custom-light: #c4b6da;
$custom-dark: #000000;
JSON
{
  "hex": "#ab98ca",
  "rgb": {
    "r": 171,
    "g": 152,
    "b": 202
  },
  "hsl": {
    "h": 262.8,
    "s": 32.051,
    "l": 69.412
  },
  "oklch": {
    "l": 0.71377,
    "c": 0.07444,
    "h": 301.9
  },
  "luminance": 0.35379
}

Semantic roles & 50–950 ramp

primary
#AB98CA
secondary
#E1E6D8
accent
#AB3B80
background
#FCFBFD
surface
#F8F6FA
border
#D1D0D3
text
#121114
muted
#818083

Preview Lab

Preview with #AB98CA

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

Preview Lab → · Contrast checker → · Palette generator →

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