#AF7DCA#AF7DCA

#AF7DCA is a light, vivid violet. Relative luminance 0.280; OKLCH L 66.8% C 0.123 H 313.1°. Best body text is #000000 at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#AF7DCA
RGBrgb(175, 125, 202)
HSLhsl(279, 42%, 64%)
HSVhsv(279, 38%, 79%)
CMYKcmyk(13.4%, 38.1%, 0%, 20.8%)
CIE-LABlab(59.93, 33.37, -32.51)
CIE-LCHlch(59.93, 46.59, 315.76°)
OKLaboklab(66.8% 0.084 -0.0896)
OKLCHoklch(66.8% 0.123 313.1)
XYZxyz(35.6717, 28.0461, 59.4000)
Luminance0.2804 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7DCA #98CA7D
analogous
#897DCA #AF7DCA #CA7DBF
triadic
#AF7DCA #CAAF7D #7DCAAF
tetradic
#AF7DCA #CA897D #98CA7D #7DBFCA
square
#AF7DCA #CA897D #98CA7D #7DBFCA
split-complementary
#AF7DCA #BFCA7D #7DCA89
monochromatic
#733B91 #9452B8 #AF7DCA #CAA8DC #E5D4ED

Accessibility & contrast

On white

3.18
#AF7DCA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.61
#AF7DCA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF7DCA
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7DCA#FFFFFF#000000##000000
##AF7DCA1.003.186.616.61
#FFFFFF3.181.0021.0021.00
#0000006.6121.001.001.00
##0000006.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F8ECD
Deuteranopia (green-blind)
#7B92C8
Tritanopia (blue-blind)
#AD889A
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #af7dca;
/* rgb */ color: rgb(175, 125, 202);
/* oklch */ color: oklch(66.8% 0.123 313.1);
Tailwind
colors: {
  custom: {
    50: '#c8a3da',
    500: '#af7dca',
    950: '#000000',
  },
}
SCSS
$custom: #af7dca;
$custom-light: #c8a3da;
$custom-dark: #000000;
JSON
{
  "hex": "#af7dca",
  "rgb": {
    "r": 175,
    "g": 125,
    "b": 202
  },
  "hsl": {
    "h": 278.961,
    "s": 42.077,
    "l": 64.118
  },
  "oklch": {
    "l": 0.66798,
    "c": 0.12282,
    "h": 313.1
  },
  "luminance": 0.28045
}

Semantic roles & 50–950 ramp

primary
#AF7DCA
secondary
#CDDFC4
accent
#B5305F
background
#FCFAFD
surface
#F8F4FA
border
#D1CED3
text
#130F15
muted
#827F83

Preview Lab

Preview with #AF7DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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