#AF87ED#AF87ED

#AF87ED is a light, vivid violet. Relative luminance 0.326; OKLCH L 70.2% C 0.150 H 300.7°. Best body text is #000000 at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#AF87ED
RGBrgb(175, 135, 237)
HSLhsl(264, 74%, 73%)
HSVhsv(264, 43%, 93%)
CMYKcmyk(26.2%, 43%, 0%, 7.1%)
CIE-LABlab(63.80, 35.74, -45.99)
CIE-LCHlch(63.80, 58.24, 307.85°)
OKLaboklab(70.24% 0.0764 -0.1286)
OKLCHoklch(70.24% 0.15 300.7)
XYZxyz(41.6258, 32.5562, 84.1953)
Luminance0.3256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF87ED #C5ED87
analogous
#8792ED #AF87ED #E287ED
triadic
#AF87ED #EDAF87 #87EDAF
tetradic
#AF87ED #ED8792 #C5ED87 #87EDE2
square
#AF87ED #ED8792 #C5ED87 #87EDE2
split-complementary
#AF87ED #EDE287 #92ED87
monochromatic
#6921D9 #8C52E5 #AF87ED #D2BCF5 #EDE4FB

Accessibility & contrast

On white

2.80
#AF87ED on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.51
#AF87ED on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF87ED
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF87ED#FFFFFF#000000##000000
##AF87ED1.002.807.517.51
#FFFFFF2.801.0021.0021.00
#0000007.5121.001.001.00
##0000007.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B9AF1
Deuteranopia (green-blind)
#739AEA
Tritanopia (blue-blind)
#A399AF
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #af87ed;
/* rgb */ color: rgb(175, 135, 237);
/* oklch */ color: oklch(70.2% 0.150 300.7);
Tailwind
colors: {
  custom: {
    50: '#c9aaf3',
    500: '#af87ed',
    950: '#000000',
  },
}
SCSS
$custom: #af87ed;
$custom-light: #c9aaf3;
$custom-dark: #000000;
JSON
{
  "hex": "#af87ed",
  "rgb": {
    "r": 175,
    "g": 135,
    "b": 237
  },
  "hsl": {
    "h": 263.529,
    "s": 73.913,
    "l": 72.941
  },
  "oklch": {
    "l": 0.70237,
    "c": 0.14955,
    "h": 300.7
  },
  "luminance": 0.32556
}

Semantic roles & 50–950 ramp

primary
#AF87ED
secondary
#E8F3D8
accent
#D60F88
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131017
muted
#827F85

Preview Lab

Preview with #AF87ED

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

Preview Lab → · Contrast checker → · Palette generator →

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