#AB98FF#AB98FF

#AB98FF is a light, vivid violet. Relative luminance 0.383; OKLCH L 73.8% C 0.147 H 290.8°. Best body text is #000000 at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#AB98FF
RGBrgb(171, 152, 255)
HSLhsl(251, 100%, 80%)
HSVhsv(251, 40%, 100%)
CMYKcmyk(32.9%, 40.4%, 0%, 0%)
CIE-LABlab(68.27, 29.54, -48.84)
CIE-LCHlch(68.27, 57.08, 301.17°)
OKLaboklab(73.81% 0.0521 -0.137)
OKLCHoklch(73.81% 0.147 290.8)
XYZxyz(46.0681, 38.3334, 99.5603)
Luminance0.3833 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB98FF #ECFF98
analogous
#98B9FF #AB98FF #DF98FF
triadic
#AB98FF #FFAB98 #98FFAB
tetradic
#AB98FF #FF98B9 #ECFF98 #98FFDF
square
#AB98FF #FF98B9 #ECFF98 #98FFDF
split-complementary
#AB98FF #FFDF98 #B9FF98
monochromatic
#471EFF #795BFF #AB98FF #DDD5FF #E6E0FF

Accessibility & contrast

On white

2.42
#AB98FF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.67
#AB98FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB98FF
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB98FF#FFFFFF#000000##000000
##AB98FF1.002.428.678.67
#FFFFFF2.421.0021.0021.00
#0000008.6721.001.001.00
##0000008.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#78A8FF
Deuteranopia (green-blind)
#79A4FC
Tritanopia (blue-blind)
#97ABBF
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #ab98ff;
/* rgb */ color: rgb(171, 152, 255);
/* oklch */ color: oklch(73.8% 0.147 290.8);
Tailwind
colors: {
  custom: {
    50: '#c7b6ff',
    500: '#ab98ff',
    950: '#000000',
  },
}
SCSS
$custom: #ab98ff;
$custom-light: #c7b6ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ab98ff",
  "rgb": {
    "r": 171,
    "g": 152,
    "b": 255
  },
  "hsl": {
    "h": 251.068,
    "s": 100,
    "l": 79.804
  },
  "oklch": {
    "l": 0.73809,
    "c": 0.14656,
    "h": 290.8
  },
  "luminance": 0.38334
}

Semantic roles & 50–950 ramp

primary
#AB98FF
secondary
#F1F7D4
accent
#E600BB
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131118
muted
#828086

Preview Lab

Preview with #AB98FF

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

Preview Lab → · Contrast checker → · Palette generator →

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