#AF7DCD#AF7DCD

#AF7DCD is a light, vivid violet. Relative luminance 0.282; OKLCH L 66.9% C 0.126 H 312.0°. Best body text is #000000 at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#AF7DCD
RGBrgb(175, 125, 205)
HSLhsl(278, 44%, 65%)
HSVhsv(278, 39%, 80%)
CMYKcmyk(14.6%, 39%, 0%, 19.6%)
CIE-LABlab(60.06, 34.02, -34.00)
CIE-LCHlch(60.06, 48.10, 315.02°)
OKLaboklab(66.94% 0.0846 -0.0939)
OKLCHoklch(66.94% 0.126 312)
XYZxyz(36.0304, 28.1896, 61.2888)
Luminance0.2819 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7DCD #9BCD7D
analogous
#877DCD #AF7DCD #CD7DC3
triadic
#AF7DCD #CDAF7D #7DCDAF
tetradic
#AF7DCD #CD877D #9BCD7D #7DC3CD
square
#AF7DCD #CD877D #9BCD7D #7DC3CD
split-complementary
#AF7DCD #C3CD7D #7DCD87
monochromatic
#733A96 #9451BC #AF7DCD #CAA9DE #E5D5EF

Accessibility & contrast

On white

3.16
#AF7DCD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.64
#AF7DCD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF7DCD
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7DCD#FFFFFF#000000##000000
##AF7DCD1.003.166.646.64
#FFFFFF3.161.0021.0021.00
#0000006.6421.001.001.00
##0000006.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E8ED0
Deuteranopia (green-blind)
#7A92CB
Tritanopia (blue-blind)
#AC889B
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #af7dcd;
/* rgb */ color: rgb(175, 125, 205);
/* oklch */ color: oklch(66.9% 0.126 312.0);
Tailwind
colors: {
  custom: {
    50: '#c8a3dc',
    500: '#af7dcd',
    950: '#000000',
  },
}
SCSS
$custom: #af7dcd;
$custom-light: #c8a3dc;
$custom-dark: #000000;
JSON
{
  "hex": "#af7dcd",
  "rgb": {
    "r": 175,
    "g": 125,
    "b": 205
  },
  "hsl": {
    "h": 277.5,
    "s": 44.444,
    "l": 64.706
  },
  "oklch": {
    "l": 0.66938,
    "c": 0.1264,
    "h": 312
  },
  "luminance": 0.28189
}

Semantic roles & 50–950 ramp

primary
#AF7DCD
secondary
#CFE1C5
accent
#B82E62
background
#FCFAFD
surface
#F8F4FB
border
#D1CED4
text
#130F15
muted
#827F83

Preview Lab

Preview with #AF7DCD

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

Preview Lab → · Contrast checker → · Palette generator →

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