#AF9DF7#AF9DF7

#AF9DF7 is a light, vivid violet. Relative luminance 0.399; OKLCH L 74.7% C 0.128 H 292.2°. Best body text is #000000 at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#AF9DF7
RGBrgb(175, 157, 247)
HSLhsl(252, 85%, 79%)
HSVhsv(252, 36%, 97%)
CMYKcmyk(29.1%, 36.4%, 0%, 3.1%)
CIE-LABlab(69.43, 25.81, -42.63)
CIE-LCHlch(69.43, 49.84, 301.19°)
OKLaboklab(74.66% 0.0485 -0.1189)
OKLCHoklch(74.66% 0.128 292.2)
XYZxyz(46.5205, 39.9425, 93.2364)
Luminance0.3994 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9DF7 #E5F79D
analogous
#9DB8F7 #AF9DF7 #DC9DF7
triadic
#AF9DF7 #F7AF9D #9DF7AF
tetradic
#AF9DF7 #F79DB8 #E5F79D #9DF7DC
square
#AF9DF7 #F79DB8 #E5F79D #9DF7DC
split-complementary
#AF9DF7 #F7DC9D #B8F79D
monochromatic
#532CEE #8164F2 #AF9DF7 #DDD6FC #E8E3FD

Accessibility & contrast

On white

2.34
#AF9DF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.99
#AF9DF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9DF7
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9DF7#FFFFFF#000000##000000
##AF9DF71.002.348.998.99
#FFFFFF2.341.0021.0021.00
#0000008.9921.001.001.00
##0000008.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#84ABFB
Deuteranopia (green-blind)
#85A8F5
Tritanopia (blue-blind)
#9FADBE
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #af9df7;
/* rgb */ color: rgb(175, 157, 247);
/* oklch */ color: oklch(74.7% 0.128 292.2);
Tailwind
colors: {
  custom: {
    50: '#c9bafa',
    500: '#af9df7',
    950: '#000000',
  },
}
SCSS
$custom: #af9df7;
$custom-light: #c9bafa;
$custom-dark: #000000;
JSON
{
  "hex": "#af9df7",
  "rgb": {
    "r": 175,
    "g": 157,
    "b": 247
  },
  "hsl": {
    "h": 252,
    "s": 84.906,
    "l": 79.216
  },
  "oklch": {
    "l": 0.74655,
    "c": 0.1284,
    "h": 292.2
  },
  "luminance": 0.39943
}

Semantic roles & 50–950 ramp

primary
#AF9DF7
secondary
#EFF5D6
accent
#E104B5
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131117
muted
#828085

Preview Lab

Preview with #AF9DF7

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

Preview Lab → · Contrast checker → · Palette generator →

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