#AF8DF7#AF8DF7

#AF8DF7 is a light, vivid violet. Relative luminance 0.349; OKLCH L 71.8% C 0.153 H 297.2°. Best body text is #000000 at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#AF8DF7
RGBrgb(175, 141, 247)
HSLhsl(259, 87%, 76%)
HSVhsv(259, 43%, 97%)
CMYKcmyk(29.1%, 42.9%, 0%, 3.1%)
CIE-LABlab(65.65, 34.80, -48.56)
CIE-LCHlch(65.65, 59.74, 305.62°)
OKLaboklab(71.79% 0.0699 -0.1361)
OKLCHoklch(71.79% 0.153 297.2)
XYZxyz(43.9885, 34.8786, 92.3924)
Luminance0.3488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8DF7 #D5F78D
analogous
#8DA0F7 #AF8DF7 #E48DF7
triadic
#AF8DF7 #F7AF8D #8DF7AF
tetradic
#AF8DF7 #F78DA0 #D5F78D #8DF7E4
square
#AF8DF7 #F78DA0 #D5F78D #8DF7E4
split-complementary
#AF8DF7 #F7E48D #A0F78D
monochromatic
#5F1BEF #8754F3 #AF8DF7 #D7C6FB #EBE2FD

Accessibility & contrast

On white

2.63
#AF8DF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.98
#AF8DF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF8DF7
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8DF7#FFFFFF#000000##000000
##AF8DF71.002.637.987.98
#FFFFFF2.631.0021.0021.00
#0000007.9821.001.001.00
##0000007.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6EA0FB
Deuteranopia (green-blind)
#749EF4
Tritanopia (blue-blind)
#A0A0B6
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #af8df7;
/* rgb */ color: rgb(175, 141, 247);
/* oklch */ color: oklch(71.8% 0.153 297.2);
Tailwind
colors: {
  custom: {
    50: '#c9affa',
    500: '#af8df7',
    950: '#000000',
  },
}
SCSS
$custom: #af8df7;
$custom-light: #c9affa;
$custom-dark: #000000;
JSON
{
  "hex": "#af8df7",
  "rgb": {
    "r": 175,
    "g": 141,
    "b": 247
  },
  "hsl": {
    "h": 259.245,
    "s": 86.885,
    "l": 76.078
  },
  "oklch": {
    "l": 0.71791,
    "c": 0.15298,
    "h": 297.2
  },
  "luminance": 0.34879
}

Semantic roles & 50–950 ramp

primary
#AF8DF7
secondary
#EBF5D6
accent
#E3029B
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#131017
muted
#827F85

Preview Lab

Preview with #AF8DF7

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

Preview Lab → · Contrast checker → · Palette generator →

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