#AF7EED#AF7EED

#AF7EED is a light, vivid violet. Relative luminance 0.301; OKLCH L 68.7% C 0.164 H 302.7°. Best body text is #000000 at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#AF7EED
RGBrgb(175, 126, 237)
HSLhsl(266, 76%, 71%)
HSVhsv(266, 47%, 93%)
CMYKcmyk(26.2%, 46.8%, 0%, 7.1%)
CIE-LABlab(61.78, 40.74, -49.17)
CIE-LCHlch(61.78, 63.85, 309.64°)
OKLaboklab(68.72% 0.0885 -0.1378)
OKLCHoklch(68.72% 0.164 302.7)
XYZxyz(40.4227, 30.1501, 83.7943)
Luminance0.3015 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7EED #BCED7E
analogous
#7E84ED #AF7EED #E67EED
triadic
#AF7EED #EDAF7E #7EEDAF
tetradic
#AF7EED #ED7E84 #BCED7E #7EEDE6
square
#AF7EED #ED7E84 #BCED7E #7EEDE6
split-complementary
#AF7EED #EDE67E #84ED7E
monochromatic
#6E1DD3 #8E48E6 #AF7EED #D0B4F4 #EEE4FB

Accessibility & contrast

On white

2.99
#AF7EED on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.03
#AF7EED on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF7EED
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7EED#FFFFFF#000000##000000
##AF7EED1.002.997.037.03
#FFFFFF2.991.0021.0021.00
#0000007.0321.001.001.00
##0000007.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E94F1
Deuteranopia (green-blind)
#6A95EA
Tritanopia (blue-blind)
#A492AA
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #af7eed;
/* rgb */ color: rgb(175, 126, 237);
/* oklch */ color: oklch(68.7% 0.164 302.7);
Tailwind
colors: {
  custom: {
    50: '#c9a4f3',
    500: '#af7eed',
    950: '#000000',
  },
}
SCSS
$custom: #af7eed;
$custom-light: #c9a4f3;
$custom-dark: #000000;
JSON
{
  "hex": "#af7eed",
  "rgb": {
    "r": 175,
    "g": 126,
    "b": 237
  },
  "hsl": {
    "h": 266.486,
    "s": 75.51,
    "l": 71.176
  },
  "oklch": {
    "l": 0.68724,
    "c": 0.16379,
    "h": 302.7
  },
  "luminance": 0.3015
}

Semantic roles & 50–950 ramp

primary
#AF7EED
secondary
#E5F2D5
accent
#D80E7F
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#130F17
muted
#827F85

Preview Lab

Preview with #AF7EED

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

Preview Lab → · Contrast checker → · Palette generator →

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