#AF8DF8#AF8DF8

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

Color values

HEX#AF8DF8
RGBrgb(175, 141, 248)
HSLhsl(259, 88%, 76%)
HSVhsv(259, 43%, 97%)
CMYKcmyk(29.4%, 43.1%, 0%, 2.7%)
CIE-LABlab(65.70, 35.04, -49.03)
CIE-LCHlch(65.70, 60.27, 305.55°)
OKLaboklab(71.84% 0.07 -0.1375)
OKLCHoklch(71.84% 0.154 297)
XYZxyz(44.1433, 34.9405, 93.2073)
Luminance0.3494 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8DF8 #D6F88D
analogous
#8DA1F8 #AF8DF8 #E48DF8
triadic
#AF8DF8 #F8AF8D #8DF8AF
tetradic
#AF8DF8 #F88DA1 #D6F88D #8DF8E4
square
#AF8DF8 #F88DA1 #D6F88D #8DF8E4
split-complementary
#AF8DF8 #F8E48D #A1F88D
monochromatic
#5E1AF1 #8753F4 #AF8DF8 #D7C7FC #EBE2FD

Accessibility & contrast

On white

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

On black

7.99
#AF8DF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF8DF8
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8DF8#FFFFFF#000000##000000
##AF8DF81.002.637.997.99
#FFFFFF2.631.0021.0021.00
#0000007.9921.001.001.00
##0000007.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6DA0FC
Deuteranopia (green-blind)
#739EF5
Tritanopia (blue-blind)
#A0A0B7
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #af8df8;
/* rgb */ color: rgb(175, 141, 248);
/* oklch */ color: oklch(71.8% 0.154 297.0);
Tailwind
colors: {
  custom: {
    50: '#c9affb',
    500: '#af8df8',
    950: '#000000',
  },
}
SCSS
$custom: #af8df8;
$custom-light: #c9affb;
$custom-dark: #000000;
JSON
{
  "hex": "#af8df8",
  "rgb": {
    "r": 175,
    "g": 141,
    "b": 248
  },
  "hsl": {
    "h": 259.065,
    "s": 88.43,
    "l": 76.275
  },
  "oklch": {
    "l": 0.71843,
    "c": 0.15427,
    "h": 297
  },
  "luminance": 0.34941
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF8DF8

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

Preview Lab → · Contrast checker → · Palette generator →

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