#AF87F0#AF87F0

#AF87F0 is a light, vivid violet. Relative luminance 0.327; OKLCH L 70.4% C 0.153 H 300.1°. Best body text is #000000 at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#AF87F0
RGBrgb(175, 135, 240)
HSLhsl(263, 78%, 74%)
HSVhsv(263, 44%, 94%)
CMYKcmyk(27.1%, 43.8%, 0%, 5.9%)
CIE-LABlab(63.94, 36.46, -47.41)
CIE-LCHlch(63.94, 59.81, 307.56°)
OKLaboklab(70.39% 0.0768 -0.1327)
OKLCHoklch(70.39% 0.153 300.1)
XYZxyz(42.0677, 32.7330, 86.5230)
Luminance0.3273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF87F0 #C8F087
analogous
#8793F0 #AF87F0 #E387F0
triadic
#AF87F0 #F0AF87 #87F0AF
tetradic
#AF87F0 #F08793 #C8F087 #87F0E3
square
#AF87F0 #F08793 #C8F087 #87F0E3
split-complementary
#AF87F0 #F0E387 #93F087
monochromatic
#671CE1 #8B51E9 #AF87F0 #D3BDF7 #EDE4FC

Accessibility & contrast

On white

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

On black

7.55
#AF87F0 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF87F0
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF87F0#FFFFFF#000000##000000
##AF87F01.002.787.557.55
#FFFFFF2.781.0021.0021.00
#0000007.5521.001.001.00
##0000007.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#699BF4
Deuteranopia (green-blind)
#729AED
Tritanopia (blue-blind)
#A399B0
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #af87f0;
/* rgb */ color: rgb(175, 135, 240);
/* oklch */ color: oklch(70.4% 0.153 300.1);
Tailwind
colors: {
  custom: {
    50: '#c9aaf5',
    500: '#af87f0',
    950: '#000000',
  },
}
SCSS
$custom: #af87f0;
$custom-light: #c9aaf5;
$custom-dark: #000000;
JSON
{
  "hex": "#af87f0",
  "rgb": {
    "r": 175,
    "g": 135,
    "b": 240
  },
  "hsl": {
    "h": 262.857,
    "s": 77.778,
    "l": 73.529
  },
  "oklch": {
    "l": 0.70392,
    "c": 0.15337,
    "h": 300.1
  },
  "luminance": 0.32733
}

Semantic roles & 50–950 ramp

primary
#AF87F0
secondary
#E9F3D8
accent
#DA0B8B
background
#FCFAFF
surface
#F8F4FE
border
#D1CED6
text
#131017
muted
#827F85

Preview Lab

Preview with #AF87F0

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

Preview Lab → · Contrast checker → · Palette generator →

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