#AB98FA#AB98FA

#AB98FA is a light, vivid violet. Relative luminance 0.380; OKLCH L 73.6% C 0.140 H 291.5°. Best body text is #000000 at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#AB98FA
RGBrgb(171, 152, 250)
HSLhsl(252, 91%, 79%)
HSVhsv(252, 39%, 98%)
CMYKcmyk(31.6%, 39.2%, 0%, 2%)
CIE-LABlab(68.03, 28.28, -46.48)
CIE-LCHlch(68.03, 54.41, 301.32°)
OKLaboklab(73.56% 0.0512 -0.1301)
OKLCHoklch(73.56% 0.14 291.5)
XYZxyz(45.2737, 38.0156, 95.3764)
Luminance0.3802 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB98FA #E7FA98
analogous
#98B6FA #AB98FA #DC98FA
triadic
#AB98FA #FAAB98 #98FAAB
tetradic
#AB98FA #FA98B6 #E7FA98 #98FADC
square
#AB98FA #FA98B6 #E7FA98 #98FADC
split-complementary
#AB98FA #FADC98 #B6FA98
monochromatic
#4C23F4 #7B5EF7 #AB98FA #DBD2FD #E7E2FE

Accessibility & contrast

On white

2.44
#AB98FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.60
#AB98FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB98FA
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB98FA#FFFFFF#000000##000000
##AB98FA1.002.448.608.60
#FFFFFF2.441.0021.0021.00
#0000008.6021.001.001.00
##0000008.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7BA7FE
Deuteranopia (green-blind)
#7CA4F8
Tritanopia (blue-blind)
#99AABD
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #ab98fa;
/* rgb */ color: rgb(171, 152, 250);
/* oklch */ color: oklch(73.6% 0.140 291.5);
Tailwind
colors: {
  custom: {
    50: '#c6b6fc',
    500: '#ab98fa',
    950: '#000000',
  },
}
SCSS
$custom: #ab98fa;
$custom-light: #c6b6fc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab98fa",
  "rgb": {
    "r": 171,
    "g": 152,
    "b": 250
  },
  "hsl": {
    "h": 251.633,
    "s": 90.741,
    "l": 78.824
  },
  "oklch": {
    "l": 0.73555,
    "c": 0.13984,
    "h": 291.5
  },
  "luminance": 0.38017
}

Semantic roles & 50–950 ramp

primary
#AB98FA
secondary
#EFF6D5
accent
#E600B9
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131117
muted
#828085

Preview Lab

Preview with #AB98FA

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

Preview Lab → · Contrast checker → · Palette generator →

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