#AF87CD#AF87CD

#AF87CD is a light, moderate violet. Relative luminance 0.308; OKLCH L 68.7% C 0.109 H 309.9°. Best body text is #000000 at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#AF87CD
RGBrgb(175, 135, 205)
HSLhsl(274, 41%, 67%)
HSVhsv(274, 34%, 80%)
CMYKcmyk(14.6%, 34.1%, 0%, 19.6%)
CIE-LABlab(62.38, 28.42, -30.39)
CIE-LCHlch(62.38, 41.61, 313.08°)
OKLaboklab(68.7% 0.0699 -0.0836)
OKLCHoklch(68.7% 0.109 309.9)
XYZxyz(37.3606, 30.8501, 61.7323)
Luminance0.3085 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF87CD #A5CD87
analogous
#8C87CD #AF87CD #CD87C8
triadic
#AF87CD #CDAF87 #87CDAF
tetradic
#AF87CD #CD8C87 #A5CD87 #87C8CD
square
#AF87CD #CD8C87 #A5CD87 #87C8CD
split-complementary
#AF87CD #C8CD87 #87CD8C
monochromatic
#73409A #925CBB #AF87CD #CCB2DF #E9DDF1

Accessibility & contrast

On white

2.93
#AF87CD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.17
#AF87CD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF87CD
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF87CD#FFFFFF#000000##000000
##AF87CD1.002.937.177.17
#FFFFFF2.931.0021.0021.00
#0000007.1721.001.001.00
##0000007.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7A95D0
Deuteranopia (green-blind)
#8398CB
Tritanopia (blue-blind)
#AC91A1
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #af87cd;
/* rgb */ color: rgb(175, 135, 205);
/* oklch */ color: oklch(68.7% 0.109 309.9);
Tailwind
colors: {
  custom: {
    50: '#c8aadc',
    500: '#af87cd',
    950: '#000000',
  },
}
SCSS
$custom: #af87cd;
$custom-light: #c8aadc;
$custom-dark: #000000;
JSON
{
  "hex": "#af87cd",
  "rgb": {
    "r": 175,
    "g": 135,
    "b": 205
  },
  "hsl": {
    "h": 274.286,
    "s": 41.176,
    "l": 66.667
  },
  "oklch": {
    "l": 0.68697,
    "c": 0.10902,
    "h": 309.9
  },
  "luminance": 0.3085
}

Semantic roles & 50–950 ramp

primary
#AF87CD
secondary
#D6E3CD
accent
#B43169
background
#FCFAFD
surface
#F8F4FB
border
#D1CED4
text
#131015
muted
#827F83

Preview Lab

Preview with #AF87CD

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

Preview Lab → · Contrast checker → · Palette generator →

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