#AB98F9#AB98F9

#AB98F9 is a light, vivid violet. Relative luminance 0.380; OKLCH L 73.5% C 0.139 H 291.6°. Best body text is #000000 at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#AB98F9
RGBrgb(171, 152, 249)
HSLhsl(252, 89%, 79%)
HSVhsv(252, 39%, 98%)
CMYKcmyk(31.3%, 39%, 0%, 2.4%)
CIE-LABlab(67.99, 28.03, -46.01)
CIE-LCHlch(67.99, 53.87, 301.35°)
OKLaboklab(73.51% 0.051 -0.1288)
OKLCHoklch(73.51% 0.139 291.6)
XYZxyz(45.1173, 37.9531, 94.5528)
Luminance0.3795 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB98F9 #E6F998
analogous
#98B5F9 #AB98F9 #DB98F9
triadic
#AB98F9 #F9AB98 #98F9AB
tetradic
#AB98F9 #F998B5 #E6F998 #98F9DB
square
#AB98F9 #F998B5 #E6F998 #98F9DB
split-complementary
#AB98F9 #F9DB98 #B5F998
monochromatic
#4D24F2 #7C5EF6 #AB98F9 #DAD2FC #E7E2FD

Accessibility & contrast

On white

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

On black

8.59
#AB98F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB98F9
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB98F9#FFFFFF#000000##000000
##AB98F91.002.448.598.59
#FFFFFF2.441.0021.0021.00
#0000008.5921.001.001.00
##0000008.5921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ab98f9;
/* rgb */ color: rgb(171, 152, 249);
/* oklch */ color: oklch(73.5% 0.139 291.6);
Tailwind
colors: {
  custom: {
    50: '#c6b6fb',
    500: '#ab98f9',
    950: '#000000',
  },
}
SCSS
$custom: #ab98f9;
$custom-light: #c6b6fb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab98f9",
  "rgb": {
    "r": 171,
    "g": 152,
    "b": 249
  },
  "hsl": {
    "h": 251.753,
    "s": 88.991,
    "l": 78.627
  },
  "oklch": {
    "l": 0.73505,
    "c": 0.1385,
    "h": 291.6
  },
  "luminance": 0.37954
}

Semantic roles & 50–950 ramp

primary
#AB98F9
secondary
#EFF5D6
accent
#E600B9
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131117
muted
#828085

Preview Lab

Preview with #AB98F9

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

Preview Lab → · Contrast checker → · Palette generator →

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