#AF72DE#AF72DE

#AF72DE is a light, vivid violet. Relative luminance 0.264; OKLCH L 66.0% C 0.165 H 308.6°. Best body text is #000000 at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#AF72DE
RGBrgb(175, 114, 222)
HSLhsl(274, 62%, 66%)
HSVhsv(274, 49%, 87%)
CMYKcmyk(21.2%, 48.6%, 0%, 12.9%)
CIE-LABlab(58.44, 43.84, -46.11)
CIE-LCHlch(58.44, 63.62, 313.56°)
OKLaboklab(65.98% 0.1029 -0.1289)
OKLCHoklch(65.98% 0.165 308.6)
XYZxyz(36.8788, 26.4230, 72.2504)
Luminance0.2642 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF72DE #A1DE72
analogous
#7972DE #AF72DE #DE72D7
triadic
#AF72DE #DEAF72 #72DEAF
tetradic
#AF72DE #DE7972 #A1DE72 #72D7DE
square
#AF72DE #DE7972 #A1DE72 #72D7DE
split-complementary
#AF72DE #D7DE72 #72DE79
monochromatic
#7329AD #9340D2 #AF72DE #CBA4EA #E7D5F5

Accessibility & contrast

On white

3.34
#AF72DE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.28
#AF72DE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF72DE
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF72DE#FFFFFF#000000##000000
##AF72DE1.003.346.286.28
#FFFFFF3.341.0021.0021.00
#0000006.2821.001.001.00
##0000006.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#568AE2
Deuteranopia (green-blind)
#678DDB
Tritanopia (blue-blind)
#A9849E
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #af72de;
/* rgb */ color: rgb(175, 114, 222);
/* oklch */ color: oklch(66.0% 0.165 308.6);
Tailwind
colors: {
  custom: {
    50: '#c99ce9',
    500: '#af72de',
    950: '#000000',
  },
}
SCSS
$custom: #af72de;
$custom-light: #c99ce9;
$custom-dark: #000000;
JSON
{
  "hex": "#af72de",
  "rgb": {
    "r": 175,
    "g": 114,
    "b": 222
  },
  "hsl": {
    "h": 273.889,
    "s": 62.069,
    "l": 65.882
  },
  "oklch": {
    "l": 0.65982,
    "c": 0.16492,
    "h": 308.6
  },
  "luminance": 0.26423
}

Semantic roles & 50–950 ramp

primary
#AF72DE
secondary
#D4E8C4
accent
#CA1C67
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #AF72DE

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

Preview Lab → · Contrast checker → · Palette generator →

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