#AF7FD7#AF7FD7

#AF7FD7 is a light, vivid violet. Relative luminance 0.292; OKLCH L 67.8% C 0.135 H 308.3°. Best body text is #000000 at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#AF7FD7
RGBrgb(175, 127, 215)
HSLhsl(273, 52%, 67%)
HSVhsv(273, 41%, 84%)
CMYKcmyk(18.6%, 40.9%, 0%, 15.7%)
CIE-LABlab(60.96, 35.11, -38.22)
CIE-LCHlch(60.96, 51.90, 312.58°)
OKLaboklab(67.76% 0.0837 -0.1061)
OKLCHoklch(67.76% 0.135 308.3)
XYZxyz(37.5320, 29.1994, 67.9356)
Luminance0.2920 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7FD7 #A7D77F
analogous
#837FD7 #AF7FD7 #D77FD3
triadic
#AF7FD7 #D7AF7F #7FD7AF
tetradic
#AF7FD7 #D7837F #A7D77F #7FD3D7
square
#AF7FD7 #D7837F #A7D77F #7FD3D7
split-complementary
#AF7FD7 #D3D77F #7FD783
monochromatic
#7334A7 #9250C8 #AF7FD7 #CCAEE6 #E9DCF4

Accessibility & contrast

On white

3.07
#AF7FD7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.84
#AF7FD7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF7FD7
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7FD7#FFFFFF#000000##000000
##AF7FD71.003.076.846.84
#FFFFFF3.071.0021.0021.00
#0000006.8421.001.001.00
##0000006.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C91DA
Deuteranopia (green-blind)
#7794D5
Tritanopia (blue-blind)
#AA8CA1
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #af7fd7;
/* rgb */ color: rgb(175, 127, 215);
/* oklch */ color: oklch(67.8% 0.135 308.3);
Tailwind
colors: {
  custom: {
    50: '#c8a5e3',
    500: '#af7fd7',
    950: '#000000',
  },
}
SCSS
$custom: #af7fd7;
$custom-light: #c8a5e3;
$custom-dark: #000000;
JSON
{
  "hex": "#af7fd7",
  "rgb": {
    "r": 175,
    "g": 127,
    "b": 215
  },
  "hsl": {
    "h": 272.727,
    "s": 52.381,
    "l": 67.059
  },
  "oklch": {
    "l": 0.6776,
    "c": 0.13511,
    "h": 308.3
  },
  "luminance": 0.29199
}

Semantic roles & 50–950 ramp

primary
#AF7FD7
secondary
#D8E7CB
accent
#C0266C
background
#FCFAFD
surface
#F8F4FB
border
#D1CED4
text
#130F15
muted
#827F83

Preview Lab

Preview with #AF7FD7

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

Preview Lab → · Contrast checker → · Palette generator →

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