#AF87E4#AF87E4

#AF87E4 is a light, vivid violet. Relative luminance 0.320; OKLCH L 69.8% C 0.138 H 302.8°. Best body text is #000000 at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#AF87E4
RGBrgb(175, 135, 228)
HSLhsl(266, 63%, 71%)
HSVhsv(266, 41%, 89%)
CMYKcmyk(23.2%, 40.8%, 0%, 10.6%)
CIE-LABlab(63.38, 33.61, -41.67)
CIE-LCHlch(63.38, 53.54, 308.89°)
OKLaboklab(69.78% 0.0748 -0.1161)
OKLCHoklch(69.78% 0.138 302.8)
XYZxyz(40.3437, 32.0434, 77.4433)
Luminance0.3204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF87E4 #BCE487
analogous
#878DE4 #AF87E4 #DD87E4
triadic
#AF87E4 #E4AF87 #87E4AF
tetradic
#AF87E4 #E4878D #BCE487 #87E4DD
square
#AF87E4 #E4878D #BCE487 #87E4DD
split-complementary
#AF87E4 #E4DD87 #8DE487
monochromatic
#6E2CC4 #8E55D9 #AF87E4 #D0B9EF #EEE6F9

Accessibility & contrast

On white

2.83
#AF87E4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.41
#AF87E4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF87E4
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF87E4#FFFFFF#000000##000000
##AF87E41.002.837.417.41
#FFFFFF2.831.0021.0021.00
#0000007.4121.001.001.00
##0000007.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7099E7
Deuteranopia (green-blind)
#7899E2
Tritanopia (blue-blind)
#A696AB
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #af87e4;
/* rgb */ color: rgb(175, 135, 228);
/* oklch */ color: oklch(69.8% 0.138 302.8);
Tailwind
colors: {
  custom: {
    50: '#c8aaed',
    500: '#af87e4',
    950: '#000000',
  },
}
SCSS
$custom: #af87e4;
$custom-light: #c8aaed;
$custom-dark: #000000;
JSON
{
  "hex": "#af87e4",
  "rgb": {
    "r": 175,
    "g": 135,
    "b": 228
  },
  "hsl": {
    "h": 265.806,
    "s": 63.265,
    "l": 71.176
  },
  "oklch": {
    "l": 0.69781,
    "c": 0.1381,
    "h": 302.8
  },
  "luminance": 0.32043
}

Semantic roles & 50–950 ramp

primary
#AF87E4
secondary
#E5F0D7
accent
#CB1A7F
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131016
muted
#827F84

Preview Lab

Preview with #AF87E4

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

Preview Lab → · Contrast checker → · Palette generator →

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