#AF7DF3#AF7DF3

#AF7DF3 is a light, vivid violet. Relative luminance 0.303; OKLCH L 68.9% C 0.173 H 301.6°. Best body text is #000000 at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#AF7DF3
RGBrgb(175, 125, 243)
HSLhsl(265, 83%, 72%)
HSVhsv(265, 49%, 95%)
CMYKcmyk(28%, 48.6%, 0%, 4.7%)
CIE-LABlab(61.87, 42.71, -52.35)
CIE-LCHlch(61.87, 67.56, 309.21°)
OKLaboklab(68.89% 0.0905 -0.1471)
OKLCHoklch(68.89% 0.173 301.6)
XYZxyz(41.1868, 30.2522, 88.4460)
Luminance0.3025 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7DF3 #C1F37D
analogous
#7D86F3 #AF7DF3 #EA7DF3
triadic
#AF7DF3 #F3AF7D #7DF3AF
tetradic
#AF7DF3 #F37D86 #C1F37D #7DF3EA
square
#AF7DF3 #F37D86 #C1F37D #7DF3EA
split-complementary
#AF7DF3 #F3EA7D #86F37D
monochromatic
#6B15E1 #8D45EE #AF7DF3 #D1B5F8 #EEE3FC

Accessibility & contrast

On white

2.98
#AF7DF3 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.05
#AF7DF3 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF7DF3
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7DF3#FFFFFF#000000##000000
##AF7DF31.002.987.057.05
#FFFFFF2.981.0021.0021.00
#0000007.0521.001.001.00
##0000007.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5895F7
Deuteranopia (green-blind)
#6595F0
Tritanopia (blue-blind)
#A292AD
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #af7df3;
/* rgb */ color: rgb(175, 125, 243);
/* oklch */ color: oklch(68.9% 0.173 301.6);
Tailwind
colors: {
  custom: {
    50: '#caa4f7',
    500: '#af7df3',
    950: '#000000',
  },
}
SCSS
$custom: #af7df3;
$custom-light: #caa4f7;
$custom-dark: #000000;
JSON
{
  "hex": "#af7df3",
  "rgb": {
    "r": 175,
    "g": 125,
    "b": 243
  },
  "hsl": {
    "h": 265.424,
    "s": 83.099,
    "l": 72.157
  },
  "oklch": {
    "l": 0.68889,
    "c": 0.17271,
    "h": 301.6
  },
  "luminance": 0.30252
}

Semantic roles & 50–950 ramp

primary
#AF7DF3
secondary
#E8F4D7
accent
#E00683
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#130F17
muted
#827F85

Preview Lab

Preview with #AF7DF3

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

Preview Lab → · Contrast checker → · Palette generator →

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