#AF87E1#AF87E1

#AF87E1 is a light, vivid violet. Relative luminance 0.319; OKLCH L 69.6% C 0.134 H 303.6°. Best body text is #000000 at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#AF87E1
RGBrgb(175, 135, 225)
HSLhsl(267, 60%, 71%)
HSVhsv(267, 40%, 88%)
CMYKcmyk(22.2%, 40%, 0%, 11.8%)
CIE-LABlab(63.24, 32.92, -40.22)
CIE-LCHlch(63.24, 51.97, 309.30°)
OKLaboklab(69.63% 0.0743 -0.1119)
OKLCHoklch(69.63% 0.134 303.6)
XYZxyz(39.9309, 31.8782, 75.2690)
Luminance0.3188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF87E1 #B9E187
analogous
#878CE1 #AF87E1 #DC87E1
triadic
#AF87E1 #E1AF87 #87E1AF
tetradic
#AF87E1 #E1878C #B9E187 #87E1DC
square
#AF87E1 #E1878C #B9E187 #87E1DC
split-complementary
#AF87E1 #E1DC87 #8CE187
monochromatic
#6F30BE #8E56D5 #AF87E1 #D0B8ED #EFE7F9

Accessibility & contrast

On white

2.85
#AF87E1 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.38
#AF87E1 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF87E1
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF87E1#FFFFFF#000000##000000
##AF87E11.002.857.387.38
#FFFFFF2.851.0021.0021.00
#0000007.3821.001.001.00
##0000007.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7198E4
Deuteranopia (green-blind)
#7A99DF
Tritanopia (blue-blind)
#A796A9
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #af87e1;
/* rgb */ color: rgb(175, 135, 225);
/* oklch */ color: oklch(69.6% 0.134 303.6);
Tailwind
colors: {
  custom: {
    50: '#c8aaea',
    500: '#af87e1',
    950: '#000000',
  },
}
SCSS
$custom: #af87e1;
$custom-light: #c8aaea;
$custom-dark: #000000;
JSON
{
  "hex": "#af87e1",
  "rgb": {
    "r": 175,
    "g": 135,
    "b": 225
  },
  "hsl": {
    "h": 266.667,
    "s": 60,
    "l": 70.588
  },
  "oklch": {
    "l": 0.69633,
    "c": 0.13428,
    "h": 303.6
  },
  "luminance": 0.31878
}

Semantic roles & 50–950 ramp

primary
#AF87E1
secondary
#E3EED6
accent
#C81E7C
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131016
muted
#827F84

Preview Lab

Preview with #AF87E1

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

Preview Lab → · Contrast checker → · Palette generator →

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