#AF87F2#AF87F2

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

Color values

HEX#AF87F2
RGBrgb(175, 135, 242)
HSLhsl(262, 80%, 74%)
HSVhsv(262, 44%, 95%)
CMYKcmyk(27.7%, 44.2%, 0%, 5.1%)
CIE-LABlab(64.04, 36.94, -48.36)
CIE-LCHlch(64.04, 60.85, 307.37°)
OKLaboklab(70.5% 0.0771 -0.1355)
OKLCHoklch(70.5% 0.156 299.6)
XYZxyz(42.3665, 32.8525, 88.0963)
Luminance0.3285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF87F2 #CAF287
analogous
#8795F2 #AF87F2 #E587F2
triadic
#AF87F2 #F2AF87 #87F2AF
tetradic
#AF87F2 #F28795 #CAF287 #87F2E5
square
#AF87F2 #F28795 #CAF287 #87F2E5
split-complementary
#AF87F2 #F2E587 #95F287
monochromatic
#6519E6 #8A50EC #AF87F2 #D4BEF8 #EDE3FC

Accessibility & contrast

On white

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

On black

7.57
#AF87F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF87F2
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF87F2#FFFFFF#000000##000000
##AF87F21.002.777.577.57
#FFFFFF2.771.0021.0021.00
#0000007.5721.001.001.00
##0000007.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#689BF6
Deuteranopia (green-blind)
#709AEF
Tritanopia (blue-blind)
#A29AB1
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #af87f2;
/* rgb */ color: rgb(175, 135, 242);
/* oklch */ color: oklch(70.5% 0.156 299.6);
Tailwind
colors: {
  custom: {
    50: '#c9aaf7',
    500: '#af87f2',
    950: '#000000',
  },
}
SCSS
$custom: #af87f2;
$custom-light: #c9aaf7;
$custom-dark: #000000;
JSON
{
  "hex": "#af87f2",
  "rgb": {
    "r": 175,
    "g": 135,
    "b": 242
  },
  "hsl": {
    "h": 262.43,
    "s": 80.451,
    "l": 73.922
  },
  "oklch": {
    "l": 0.70497,
    "c": 0.15591,
    "h": 299.6
  },
  "luminance": 0.32853
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF87F2

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

Preview Lab → · Contrast checker → · Palette generator →

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