#A98DF2#A98DF2

#A98DF2 is a light, vivid violet. Relative luminance 0.339; OKLCH L 71.0% C 0.146 H 295.2°. Best body text is #000000 at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#A98DF2
RGBrgb(169, 141, 242)
HSLhsl(257, 80%, 75%)
HSVhsv(257, 42%, 95%)
CMYKcmyk(30.2%, 41.7%, 0%, 5.1%)
CIE-LABlab(64.88, 31.95, -47.08)
CIE-LCHlch(64.88, 56.89, 304.16°)
OKLaboklab(71% 0.0621 -0.1319)
OKLCHoklch(71% 0.146 295.2)
XYZxyz(41.9101, 33.8950, 88.3215)
Luminance0.3390 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A98DF2 #D6F28D
analogous
#8DA3F2 #A98DF2 #DC8DF2
triadic
#A98DF2 #F2A98D #8DF2A9
tetradic
#A98DF2 #F28DA3 #D6F28D #8DF2DC
square
#A98DF2 #F28DA3 #D6F28D #8DF2DC
split-complementary
#A98DF2 #F2DC8D #A3F28D
monochromatic
#561FE5 #8056EC #A98DF2 #D2C4F8 #EAE4FC

Accessibility & contrast

On white

2.70
#A98DF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.78
#A98DF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A98DF2
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A98DF2#FFFFFF#000000##000000
##A98DF21.002.707.787.78
#FFFFFF2.701.0021.0021.00
#0000007.7821.001.001.00
##0000007.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F9EF6
Deuteranopia (green-blind)
#739CEF
Tritanopia (blue-blind)
#999FB4
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #a98df2;
/* rgb */ color: rgb(169, 141, 242);
/* oklch */ color: oklch(71.0% 0.146 295.2);
Tailwind
colors: {
  custom: {
    50: '#c5aef7',
    500: '#a98df2',
    950: '#000000',
  },
}
SCSS
$custom: #a98df2;
$custom-light: #c5aef7;
$custom-dark: #000000;
JSON
{
  "hex": "#a98df2",
  "rgb": {
    "r": 169,
    "g": 141,
    "b": 242
  },
  "hsl": {
    "h": 256.634,
    "s": 79.528,
    "l": 75.098
  },
  "oklch": {
    "l": 0.71,
    "c": 0.14577,
    "h": 295.2
  },
  "luminance": 0.33896
}

Semantic roles & 50–950 ramp

primary
#A98DF2
secondary
#ECF4D7
accent
#DC0AA2
background
#FCFAFF
surface
#F8F4FE
border
#D1CED6
text
#131017
muted
#827F85

Preview Lab

Preview with #A98DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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