#AF87CA#AF87CA

#AF87CA is a light, moderate violet. Relative luminance 0.307; OKLCH L 68.6% C 0.105 H 311.1°. Best body text is #000000 at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#AF87CA
RGBrgb(175, 135, 202)
HSLhsl(276, 39%, 66%)
HSVhsv(276, 33%, 79%)
CMYKcmyk(13.4%, 33.2%, 0%, 20.8%)
CIE-LABlab(62.26, 27.76, -28.90)
CIE-LCHlch(62.26, 40.07, 313.86°)
OKLaboklab(68.57% 0.0692 -0.0794)
OKLCHoklch(68.57% 0.105 311.1)
XYZxyz(37.0020, 30.7067, 59.8434)
Luminance0.3071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF87CA #A2CA87
analogous
#8D87CA #AF87CA #CA87C3
triadic
#AF87CA #CAAF87 #87CAAF
tetradic
#AF87CA #CA8D87 #A2CA87 #87C3CA
square
#AF87CA #CA8D87 #A2CA87 #87C3CA
split-complementary
#AF87CA #C3CA87 #87CA8D
monochromatic
#734295 #935DB7 #AF87CA #CBB1DD #E8DCEF

Accessibility & contrast

On white

2.94
#AF87CA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.14
#AF87CA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF87CA
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF87CA#FFFFFF#000000##000000
##AF87CA1.002.947.147.14
#FFFFFF2.941.0021.0021.00
#0000007.1421.001.001.00
##0000007.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7B94CD
Deuteranopia (green-blind)
#8497C8
Tritanopia (blue-blind)
#AC909F
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #af87ca;
/* rgb */ color: rgb(175, 135, 202);
/* oklch */ color: oklch(68.6% 0.105 311.1);
Tailwind
colors: {
  custom: {
    50: '#c7aada',
    500: '#af87ca',
    950: '#000000',
  },
}
SCSS
$custom: #af87ca;
$custom-light: #c7aada;
$custom-dark: #000000;
JSON
{
  "hex": "#af87ca",
  "rgb": {
    "r": 175,
    "g": 135,
    "b": 202
  },
  "hsl": {
    "h": 275.821,
    "s": 38.728,
    "l": 66.078
  },
  "oklch": {
    "l": 0.68565,
    "c": 0.10529,
    "h": 311.1
  },
  "luminance": 0.30706
}

Semantic roles & 50–950 ramp

primary
#AF87CA
secondary
#D4E1CB
accent
#B23467
background
#FCFAFD
surface
#F8F4FA
border
#D1CED3
text
#131015
muted
#827F83

Preview Lab

Preview with #AF87CA

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

Preview Lab → · Contrast checker → · Palette generator →

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