#AF7DF8#AF7DF8

#AF7DF8 is a light, vivid violet. Relative luminance 0.306; OKLCH L 69.2% C 0.179 H 300.6°. Best body text is #000000 at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#AF7DF8
RGBrgb(175, 125, 248)
HSLhsl(264, 90%, 73%)
HSVhsv(264, 50%, 97%)
CMYKcmyk(29.4%, 49.6%, 0%, 2.7%)
CIE-LABlab(62.13, 43.91, -54.69)
CIE-LCHlch(62.13, 70.14, 308.76°)
OKLaboklab(69.17% 0.091 -0.1539)
OKLCHoklch(69.17% 0.179 300.6)
XYZxyz(41.9521, 30.5583, 92.4769)
Luminance0.3056 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7DF8 #C6F87D
analogous
#7D88F8 #AF7DF8 #EC7DF8
triadic
#AF7DF8 #F8AF7D #7DF8AF
tetradic
#AF7DF8 #F87D88 #C6F87D #7DF8EC
square
#AF7DF8 #F87D88 #C6F87D #7DF8EC
split-complementary
#AF7DF8 #F8EC7D #88F87D
monochromatic
#680DEE #8B43F5 #AF7DF8 #D3B7FB #EDE2FD

Accessibility & contrast

On white

2.95
#AF7DF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.11
#AF7DF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF7DF8
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7DF8#FFFFFF#000000##000000
##AF7DF81.002.957.117.11
#FFFFFF2.951.0021.0021.00
#0000007.1121.001.001.00
##0000007.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5496FC
Deuteranopia (green-blind)
#6195F5
Tritanopia (blue-blind)
#A194AF
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #af7df8;
/* rgb */ color: rgb(175, 125, 248);
/* oklch */ color: oklch(69.2% 0.179 300.6);
Tailwind
colors: {
  custom: {
    50: '#caa4fb',
    500: '#af7df8',
    950: '#000000',
  },
}
SCSS
$custom: #af7df8;
$custom-light: #caa4fb;
$custom-dark: #000000;
JSON
{
  "hex": "#af7df8",
  "rgb": {
    "r": 175,
    "g": 125,
    "b": 248
  },
  "hsl": {
    "h": 264.39,
    "s": 89.781,
    "l": 73.137
  },
  "oklch": {
    "l": 0.69169,
    "c": 0.17881,
    "h": 300.6
  },
  "luminance": 0.30559
}

Semantic roles & 50–950 ramp

primary
#AF7DF8
secondary
#E8F6D5
accent
#E60088
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#140F17
muted
#827F85

Preview Lab

Preview with #AF7DF8

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

Preview Lab → · Contrast checker → · Palette generator →

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