#AF7EDD#AF7EDD

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

Color values

HEX#AF7EDD
RGBrgb(175, 126, 221)
HSLhsl(271, 58%, 68%)
HSVhsv(271, 43%, 87%)
CMYKcmyk(20.8%, 43%, 0%, 13.3%)
CIE-LABlab(61.01, 37.02, -41.49)
CIE-LCHlch(61.01, 55.61, 311.74°)
OKLaboklab(67.89% 0.0862 -0.1155)
OKLCHoklch(67.89% 0.144 306.7)
XYZxyz(38.1886, 29.2564, 72.0278)
Luminance0.2926 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7EDD #ACDD7E
analogous
#7F7EDD #AF7EDD #DD7EDC
triadic
#AF7EDD #DDAF7E #7EDDAF
tetradic
#AF7EDD #DD7F7E #ACDD7E #7EDCDD
square
#AF7EDD #DD7F7E #ACDD7E #7EDCDD
split-complementary
#AF7EDD #DCDD7E #7EDD7F
monochromatic
#722FB2 #914ED0 #AF7EDD #CDAEEA #EBDFF7

Accessibility & contrast

On white

3.07
#AF7EDD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF7EDD#FFFFFF#000000##000000
##AF7EDD1.003.076.856.85
#FFFFFF3.071.0021.0021.00
#0000006.8521.001.001.00
##0000006.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6791E0
Deuteranopia (green-blind)
#7394DA
Tritanopia (blue-blind)
#A88DA3
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #af7edd;
/* rgb */ color: rgb(175, 126, 221);
/* oklch */ color: oklch(67.9% 0.144 306.7);
Tailwind
colors: {
  custom: {
    50: '#c8a4e8',
    500: '#af7edd',
    950: '#000000',
  },
}
SCSS
$custom: #af7edd;
$custom-light: #c8a4e8;
$custom-dark: #000000;
JSON
{
  "hex": "#af7edd",
  "rgb": {
    "r": 175,
    "g": 126,
    "b": 221
  },
  "hsl": {
    "h": 270.947,
    "s": 58.282,
    "l": 68.039
  },
  "oklch": {
    "l": 0.67888,
    "c": 0.14413,
    "h": 306.7
  },
  "luminance": 0.29256
}

Semantic roles & 50–950 ramp

primary
#AF7EDD
secondary
#DBEACD
accent
#C62070
background
#FCFAFE
surface
#F8F4FC
border
#D1CED5
text
#130F16
muted
#827F84

Preview Lab

Preview with #AF7EDD

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

Preview Lab → · Contrast checker → · Palette generator →

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