#AF87F3#AF87F3

#AF87F3 is a light, vivid violet. Relative luminance 0.329; OKLCH L 70.5% C 0.157 H 299.4°. Best body text is #000000 at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#AF87F3
RGBrgb(175, 135, 243)
HSLhsl(262, 82%, 74%)
HSVhsv(262, 44%, 95%)
CMYKcmyk(28%, 44.4%, 0%, 4.7%)
CIE-LABlab(64.09, 37.18, -48.84)
CIE-LCHlch(64.09, 61.38, 307.28°)
OKLaboklab(70.55% 0.0773 -0.1369)
OKLCHoklch(70.55% 0.157 299.4)
XYZxyz(42.5171, 32.9127, 88.8895)
Luminance0.3291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF87F3 #CBF387
analogous
#8795F3 #AF87F3 #E587F3
triadic
#AF87F3 #F3AF87 #87F3AF
tetradic
#AF87F3 #F38795 #CBF387 #87F3E5
square
#AF87F3 #F38795 #CBF387 #87F3E5
split-complementary
#AF87F3 #F3E587 #95F387
monochromatic
#6518E8 #8A4FED #AF87F3 #D4BFF9 #ECE3FC

Accessibility & contrast

On white

2.77
#AF87F3 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.58
#AF87F3 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF87F3
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF87F3#FFFFFF#000000##000000
##AF87F31.002.777.587.58
#FFFFFF2.771.0021.0021.00
#0000007.5821.001.001.00
##0000007.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#679BF7
Deuteranopia (green-blind)
#709BF0
Tritanopia (blue-blind)
#A29AB1
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #af87f3;
/* rgb */ color: rgb(175, 135, 243);
/* oklch */ color: oklch(70.5% 0.157 299.4);
Tailwind
colors: {
  custom: {
    50: '#c9aaf7',
    500: '#af87f3',
    950: '#000000',
  },
}
SCSS
$custom: #af87f3;
$custom-light: #c9aaf7;
$custom-dark: #000000;
JSON
{
  "hex": "#af87f3",
  "rgb": {
    "r": 175,
    "g": 135,
    "b": 243
  },
  "hsl": {
    "h": 262.222,
    "s": 81.818,
    "l": 74.118
  },
  "oklch": {
    "l": 0.7055,
    "c": 0.15717,
    "h": 299.4
  },
  "luminance": 0.32913
}

Semantic roles & 50–950 ramp

primary
#AF87F3
secondary
#E9F4D7
accent
#DE078F
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#131017
muted
#827F85

Preview Lab

Preview with #AF87F3

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

Preview Lab → · Contrast checker → · Palette generator →

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