#AF98FF#AF98FF

#AF98FF is a light, vivid violet. Relative luminance 0.388; OKLCH L 74.1% C 0.147 H 292.7°. Best body text is #000000 at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#AF98FF
RGBrgb(175, 152, 255)
HSLhsl(253, 100%, 80%)
HSVhsv(253, 40%, 100%)
CMYKcmyk(31.4%, 40.4%, 0%, 0%)
CIE-LABlab(68.60, 30.61, -48.29)
CIE-LCHlch(68.60, 57.17, 302.37°)
OKLaboklab(74.14% 0.0567 -0.1353)
OKLCHoklch(74.14% 0.147 292.7)
XYZxyz(46.9528, 38.7896, 99.6017)
Luminance0.3879 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF98FF #E8FF98
analogous
#98B5FF #AF98FF #E398FF
triadic
#AF98FF #FFAF98 #98FFAF
tetradic
#AF98FF #FF98B5 #E8FF98 #98FFE3
square
#AF98FF #FF98B5 #E8FF98 #98FFE3
split-complementary
#AF98FF #FFE398 #B5FF98
monochromatic
#501EFF #7F5BFF #AF98FF #DFD5FF #E7E0FF

Accessibility & contrast

On white

2.40
#AF98FF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.76
#AF98FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF98FF
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF98FF#FFFFFF#000000##000000
##AF98FF1.002.408.768.76
#FFFFFF2.401.0021.0021.00
#0000008.7621.001.001.00
##0000008.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#79A9FF
Deuteranopia (green-blind)
#7BA5FC
Tritanopia (blue-blind)
#9DABBF
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #af98ff;
/* rgb */ color: rgb(175, 152, 255);
/* oklch */ color: oklch(74.1% 0.147 292.7);
Tailwind
colors: {
  custom: {
    50: '#c9b6ff',
    500: '#af98ff',
    950: '#000000',
  },
}
SCSS
$custom: #af98ff;
$custom-light: #c9b6ff;
$custom-dark: #000000;
JSON
{
  "hex": "#af98ff",
  "rgb": {
    "r": 175,
    "g": 152,
    "b": 255
  },
  "hsl": {
    "h": 253.398,
    "s": 100,
    "l": 79.804
  },
  "oklch": {
    "l": 0.74143,
    "c": 0.14669,
    "h": 292.7
  },
  "luminance": 0.3879
}

Semantic roles & 50–950 ramp

primary
#AF98FF
secondary
#EFF7D4
accent
#E600B2
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#131118
muted
#828086

Preview Lab

Preview with #AF98FF

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

Preview Lab → · Contrast checker → · Palette generator →

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