#AC98FC#AC98FC

#AC98FC is a light, vivid violet. Relative luminance 0.383; OKLCH L 73.7% C 0.143 H 291.7°. Best body text is #000000 at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#AC98FC
RGBrgb(172, 152, 252)
HSLhsl(252, 94%, 79%)
HSVhsv(252, 40%, 99%)
CMYKcmyk(31.7%, 39.7%, 0%, 1.2%)
CIE-LABlab(68.21, 29.05, -47.29)
CIE-LCHlch(68.21, 55.50, 301.56°)
OKLaboklab(73.74% 0.0527 -0.1325)
OKLCHoklch(73.74% 0.143 291.7)
XYZxyz(45.8077, 38.2545, 97.0470)
Luminance0.3826 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC98FC #E8FC98
analogous
#98B6FC #AC98FC #DE98FC
triadic
#AC98FC #FCAC98 #98FCAC
tetradic
#AC98FC #FC98B6 #E8FC98 #98FCDE
square
#AC98FC #FC98B6 #E8FC98 #98FCDE
split-complementary
#AC98FC #FCDE98 #B6FC98
monochromatic
#4C21F9 #7C5DFA #AC98FC #DCD3FE #E7E1FE

Accessibility & contrast

On white

2.43
#AC98FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.65
#AC98FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AC98FC
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC98FC#FFFFFF#000000##000000
##AC98FC1.002.438.658.65
#FFFFFF2.431.0021.0021.00
#0000008.6521.001.001.00
##0000008.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7AA8FF
Deuteranopia (green-blind)
#7CA4FA
Tritanopia (blue-blind)
#99AABE
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #ac98fc;
/* rgb */ color: rgb(172, 152, 252);
/* oklch */ color: oklch(73.7% 0.143 291.7);
Tailwind
colors: {
  custom: {
    50: '#c7b6fe',
    500: '#ac98fc',
    950: '#000000',
  },
}
SCSS
$custom: #ac98fc;
$custom-light: #c7b6fe;
$custom-dark: #000000;
JSON
{
  "hex": "#ac98fc",
  "rgb": {
    "r": 172,
    "g": 152,
    "b": 252
  },
  "hsl": {
    "h": 252,
    "s": 94.34,
    "l": 79.216
  },
  "oklch": {
    "l": 0.73739,
    "c": 0.14256,
    "h": 291.7
  },
  "luminance": 0.38255
}

Semantic roles & 50–950 ramp

primary
#AC98FC
secondary
#F0F6D5
accent
#E600B8
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131118
muted
#828086

Preview Lab

Preview with #AC98FC

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

Preview Lab → · Contrast checker → · Palette generator →

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