#AF87F4#AF87F4

#AF87F4 is a light, vivid violet. Relative luminance 0.330; OKLCH L 70.6% C 0.158 H 299.2°. Best body text is #000000 at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#AF87F4
RGBrgb(175, 135, 244)
HSLhsl(262, 83%, 74%)
HSVhsv(262, 45%, 96%)
CMYKcmyk(28.3%, 44.7%, 0%, 4.3%)
CIE-LABlab(64.14, 37.42, -49.31)
CIE-LCHlch(64.14, 61.90, 307.19°)
OKLaboklab(70.6% 0.0774 -0.1383)
OKLCHoklch(70.6% 0.158 299.2)
XYZxyz(42.6685, 32.9733, 89.6869)
Luminance0.3297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF87F4 #CCF487
analogous
#8796F4 #AF87F4 #E587F4
triadic
#AF87F4 #F4AF87 #87F4AF
tetradic
#AF87F4 #F48796 #CCF487 #87F4E5
square
#AF87F4 #F48796 #CCF487 #87F4E5
split-complementary
#AF87F4 #F4E587 #96F487
monochromatic
#6417EA #8A4FEF #AF87F4 #D4BFF9 #ECE3FC

Accessibility & contrast

On white

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

On black

7.59
#AF87F4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF87F4
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF87F4#FFFFFF#000000##000000
##AF87F41.002.777.597.59
#FFFFFF2.771.0021.0021.00
#0000007.5921.001.001.00
##0000007.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#679BF8
Deuteranopia (green-blind)
#6F9BF1
Tritanopia (blue-blind)
#A19AB2
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #af87f4;
/* rgb */ color: rgb(175, 135, 244);
/* oklch */ color: oklch(70.6% 0.158 299.2);
Tailwind
colors: {
  custom: {
    50: '#c9aaf8',
    500: '#af87f4',
    950: '#000000',
  },
}
SCSS
$custom: #af87f4;
$custom-light: #c9aaf8;
$custom-dark: #000000;
JSON
{
  "hex": "#af87f4",
  "rgb": {
    "r": 175,
    "g": 135,
    "b": 244
  },
  "hsl": {
    "h": 262.018,
    "s": 83.206,
    "l": 74.314
  },
  "oklch": {
    "l": 0.70603,
    "c": 0.15845,
    "h": 299.2
  },
  "luminance": 0.32974
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF87F4

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

Preview Lab → · Contrast checker → · Palette generator →

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