#AF87F1#AF87F1

#AF87F1 is a light, vivid violet. Relative luminance 0.328; OKLCH L 70.4% C 0.155 H 299.9°. Best body text is #000000 at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#AF87F1
RGBrgb(175, 135, 241)
HSLhsl(263, 79%, 74%)
HSVhsv(263, 44%, 95%)
CMYKcmyk(27.4%, 44%, 0%, 5.5%)
CIE-LABlab(63.99, 36.70, -47.89)
CIE-LCHlch(63.99, 60.33, 307.46°)
OKLaboklab(70.45% 0.077 -0.1341)
OKLCHoklch(70.45% 0.155 299.9)
XYZxyz(42.2167, 32.7925, 87.3075)
Luminance0.3279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF87F1 #C9F187
analogous
#8794F1 #AF87F1 #E487F1
triadic
#AF87F1 #F1AF87 #87F1AF
tetradic
#AF87F1 #F18794 #C9F187 #87F1E4
square
#AF87F1 #F18794 #C9F187 #87F1E4
split-complementary
#AF87F1 #F1E487 #94F187
monochromatic
#661AE3 #8A50EB #AF87F1 #D4BEF7 #EDE4FC

Accessibility & contrast

On white

2.78
#AF87F1 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.56
#AF87F1 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF87F1
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF87F1#FFFFFF#000000##000000
##AF87F11.002.787.567.56
#FFFFFF2.781.0021.0021.00
#0000007.5621.001.001.00
##0000007.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#699BF5
Deuteranopia (green-blind)
#719AEE
Tritanopia (blue-blind)
#A29AB0
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #af87f1;
/* rgb */ color: rgb(175, 135, 241);
/* oklch */ color: oklch(70.4% 0.155 299.9);
Tailwind
colors: {
  custom: {
    50: '#c9aaf6',
    500: '#af87f1',
    950: '#000000',
  },
}
SCSS
$custom: #af87f1;
$custom-light: #c9aaf6;
$custom-dark: #000000;
JSON
{
  "hex": "#af87f1",
  "rgb": {
    "r": 175,
    "g": 135,
    "b": 241
  },
  "hsl": {
    "h": 262.642,
    "s": 79.104,
    "l": 73.725
  },
  "oklch": {
    "l": 0.70445,
    "c": 0.15464,
    "h": 299.9
  },
  "luminance": 0.32793
}

Semantic roles & 50–950 ramp

primary
#AF87F1
secondary
#E9F4D7
accent
#DB0A8C
background
#FCFAFF
surface
#F9F4FE
border
#D2CED6
text
#131017
muted
#827F85

Preview Lab

Preview with #AF87F1

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

Preview Lab → · Contrast checker → · Palette generator →

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