#AF7DF2#AF7DF2

#AF7DF2 is a light, vivid violet. Relative luminance 0.302; OKLCH L 68.8% C 0.171 H 301.8°. Best body text is #000000 at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#AF7DF2
RGBrgb(175, 125, 242)
HSLhsl(266, 82%, 72%)
HSVhsv(266, 48%, 95%)
CMYKcmyk(27.7%, 48.3%, 0%, 5.1%)
CIE-LABlab(61.82, 42.47, -51.88)
CIE-LCHlch(61.82, 67.05, 309.31°)
OKLaboklab(68.83% 0.0904 -0.1457)
OKLCHoklch(68.83% 0.171 301.8)
XYZxyz(41.0362, 30.1919, 87.6529)
Luminance0.3019 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7DF2 #C0F27D
analogous
#7D86F2 #AF7DF2 #EA7DF2
triadic
#AF7DF2 #F2AF7D #7DF2AF
tetradic
#AF7DF2 #F27D86 #C0F27D #7DF2EA
square
#AF7DF2 #F27D86 #C0F27D #7DF2EA
split-complementary
#AF7DF2 #F2EA7D #86F27D
monochromatic
#6C16DE #8D45EC #AF7DF2 #D1B5F8 #EEE3FC

Accessibility & contrast

On white

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

On black

7.04
#AF7DF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF7DF2
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7DF2#FFFFFF#000000##000000
##AF7DF21.002.987.047.04
#FFFFFF2.981.0021.0021.00
#0000007.0421.001.001.00
##0000007.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5995F6
Deuteranopia (green-blind)
#6695EF
Tritanopia (blue-blind)
#A292AC
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #af7df2;
/* rgb */ color: rgb(175, 125, 242);
/* oklch */ color: oklch(68.8% 0.171 301.8);
Tailwind
colors: {
  custom: {
    50: '#c9a4f7',
    500: '#af7df2',
    950: '#000000',
  },
}
SCSS
$custom: #af7df2;
$custom-light: #c9a4f7;
$custom-dark: #000000;
JSON
{
  "hex": "#af7df2",
  "rgb": {
    "r": 175,
    "g": 125,
    "b": 242
  },
  "hsl": {
    "h": 265.641,
    "s": 81.818,
    "l": 71.961
  },
  "oklch": {
    "l": 0.68833,
    "c": 0.17148,
    "h": 301.8
  },
  "luminance": 0.30192
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF7DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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