#AF7DE2#AF7DE2

#AF7DE2 is a light, vivid violet. Relative luminance 0.293; OKLCH L 68.0% C 0.152 H 305.6°. Best body text is #000000 at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#AF7DE2
RGBrgb(175, 125, 226)
HSLhsl(270, 64%, 69%)
HSVhsv(270, 45%, 89%)
CMYKcmyk(22.6%, 44.7%, 0%, 11.4%)
CIE-LABlab(61.02, 38.72, -44.26)
CIE-LCHlch(61.02, 58.81, 311.18°)
OKLaboklab(67.98% 0.0884 -0.1236)
OKLCHoklch(67.98% 0.152 305.6)
XYZxyz(38.7375, 29.2724, 75.5462)
Luminance0.2927 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7DE2 #B0E27D
analogous
#7D7EE2 #AF7DE2 #E27DE2
triadic
#AF7DE2 #E2AF7D #7DE2AF
tetradic
#AF7DE2 #E27D7E #B0E27D #7DE2E2
square
#AF7DE2 #E27D7E #B0E27D #7DE2E2
split-complementary
#AF7DE2 #E2E27D #7EE27D
monochromatic
#722ABB #904BD7 #AF7DE2 #CEAFED #EDE1F8

Accessibility & contrast

On white

3.06
#AF7DE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.85
#AF7DE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF7DE2
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7DE2#FFFFFF#000000##000000
##AF7DE21.003.066.856.85
#FFFFFF3.061.0021.0021.00
#0000006.8521.001.001.00
##0000006.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6392E6
Deuteranopia (green-blind)
#7094DF
Tritanopia (blue-blind)
#A78EA5
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #af7de2;
/* rgb */ color: rgb(175, 125, 226);
/* oklch */ color: oklch(68.0% 0.152 305.6);
Tailwind
colors: {
  custom: {
    50: '#c9a3eb',
    500: '#af7de2',
    950: '#000000',
  },
}
SCSS
$custom: #af7de2;
$custom-light: #c9a3eb;
$custom-dark: #000000;
JSON
{
  "hex": "#af7de2",
  "rgb": {
    "r": 175,
    "g": 125,
    "b": 226
  },
  "hsl": {
    "h": 269.703,
    "s": 63.522,
    "l": 68.824
  },
  "oklch": {
    "l": 0.67976,
    "c": 0.1519,
    "h": 305.6
  },
  "luminance": 0.29272
}

Semantic roles & 50–950 ramp

primary
#AF7DE2
secondary
#DEECCE
accent
#CB1A74
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#130F16
muted
#827F84

Preview Lab

Preview with #AF7DE2

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

Preview Lab → · Contrast checker → · Palette generator →

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