#AF87FC#AF87FC

#AF87FC is a light, vivid violet. Relative luminance 0.335; OKLCH L 71.0% C 0.169 H 297.7°. Best body text is #000000 at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#AF87FC
RGBrgb(175, 135, 252)
HSLhsl(261, 95%, 76%)
HSVhsv(261, 46%, 99%)
CMYKcmyk(30.6%, 46.4%, 0%, 1.2%)
CIE-LABlab(64.54, 39.37, -53.07)
CIE-LCHlch(64.54, 66.08, 306.57°)
OKLaboklab(71.03% 0.0784 -0.1492)
OKLCHoklch(71.03% 0.169 297.7)
XYZxyz(43.9096, 33.4697, 96.2235)
Luminance0.3347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF87FC #D4FC87
analogous
#8799FC #AF87FC #EA87FC
triadic
#AF87FC #FCAF87 #87FCAF
tetradic
#AF87FC #FC8799 #D4FC87 #87FCEA
square
#AF87FC #FC8799 #D4FC87 #87FCEA
split-complementary
#AF87FC #FCEA87 #99FC87
monochromatic
#5F10F9 #874BFB #AF87FC #D7C3FD #EBE1FE

Accessibility & contrast

On white

2.73
#AF87FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.69
#AF87FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF87FC
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF87FC#FFFFFF#000000##000000
##AF87FC1.002.737.697.69
#FFFFFF2.731.0021.0021.00
#0000007.6921.001.001.00
##0000007.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#629DFF
Deuteranopia (green-blind)
#6A9BF9
Tritanopia (blue-blind)
#9F9DB6
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #af87fc;
/* rgb */ color: rgb(175, 135, 252);
/* oklch */ color: oklch(71.0% 0.169 297.7);
Tailwind
colors: {
  custom: {
    50: '#caaafe',
    500: '#af87fc',
    950: '#000000',
  },
}
SCSS
$custom: #af87fc;
$custom-light: #caaafe;
$custom-dark: #000000;
JSON
{
  "hex": "#af87fc",
  "rgb": {
    "r": 175,
    "g": 135,
    "b": 252
  },
  "hsl": {
    "h": 260.513,
    "s": 95.122,
    "l": 75.882
  },
  "oklch": {
    "l": 0.71033,
    "c": 0.16857,
    "h": 297.7
  },
  "luminance": 0.3347
}

Semantic roles & 50–950 ramp

primary
#AF87FC
secondary
#EBF6D5
accent
#E60097
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#131018
muted
#827F86

Preview Lab

Preview with #AF87FC

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

Preview Lab → · Contrast checker → · Palette generator →

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