#AB98EA#AB98EA

#AB98EA is a light, moderate violet. Relative luminance 0.371; OKLCH L 72.8% C 0.118 H 293.9°. Best body text is #000000 at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#AB98EA
RGBrgb(171, 152, 234)
HSLhsl(254, 66%, 76%)
HSVhsv(254, 35%, 92%)
CMYKcmyk(26.9%, 35%, 0%, 8.2%)
CIE-LABlab(67.32, 24.32, -38.84)
CIE-LCHlch(67.32, 45.83, 302.06°)
OKLaboklab(72.78% 0.0479 -0.108)
OKLCHoklch(72.78% 0.118 293.9)
XYZxyz(42.8705, 37.0543, 82.7195)
Luminance0.3705 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB98EA #D7EA98
analogous
#98AEEA #AB98EA #D498EA
triadic
#AB98EA #EAAB98 #98EAAB
tetradic
#AB98EA #EA98AE #D7EA98 #98EAD4
square
#AB98EA #EA98AE #D7EA98 #98EAD4
split-complementary
#AB98EA #EAD498 #AEEA98
monochromatic
#5832D5 #8265E0 #AB98EA #D4CBF4 #EAE6FA

Accessibility & contrast

On white

2.50
#AB98EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.41
#AB98EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB98EA
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB98EA#FFFFFF#000000##000000
##AB98EA1.002.508.418.41
#FFFFFF2.501.0021.0021.00
#0000008.4121.001.001.00
##0000008.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#82A5ED
Deuteranopia (green-blind)
#84A3E8
Tritanopia (blue-blind)
#9EA6B6
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #ab98ea;
/* rgb */ color: rgb(171, 152, 234);
/* oklch */ color: oklch(72.8% 0.118 293.9);
Tailwind
colors: {
  custom: {
    50: '#c5b6f1',
    500: '#ab98ea',
    950: '#000000',
  },
}
SCSS
$custom: #ab98ea;
$custom-light: #c5b6f1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab98ea",
  "rgb": {
    "r": 171,
    "g": 152,
    "b": 234
  },
  "hsl": {
    "h": 253.902,
    "s": 66.129,
    "l": 75.686
  },
  "oklch": {
    "l": 0.72776,
    "c": 0.11817,
    "h": 293.9
  },
  "luminance": 0.37055
}

Semantic roles & 50–950 ramp

primary
#AB98EA
secondary
#ECF1DA
accent
#CE18A4
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131116
muted
#828084

Preview Lab

Preview with #AB98EA

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

Preview Lab → · Contrast checker → · Palette generator →

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