#AFA0E5#AFA0E5

#AFA0E5 is a light, moderate violet. Relative luminance 0.399; OKLCH L 74.4% C 0.099 H 293.8°. Best body text is #000000 at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#AFA0E5
RGBrgb(175, 160, 229)
HSLhsl(253, 57%, 76%)
HSVhsv(253, 30%, 90%)
CMYKcmyk(23.6%, 30.1%, 0%, 10.2%)
CIE-LABlab(69.41, 19.79, -32.82)
CIE-LCHlch(69.41, 38.33, 301.09°)
OKLaboklab(74.39% 0.0401 -0.0907)
OKLCHoklch(74.39% 0.099 293.8)
XYZxyz(44.3895, 39.9122, 79.4787)
Luminance0.3991 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA0E5 #D6E5A0
analogous
#A0B4E5 #AFA0E5 #D2A0E5
triadic
#AFA0E5 #E5AFA0 #A0E5AF
tetradic
#AFA0E5 #E5A0B4 #D6E5A0 #A0E5D2
square
#AFA0E5 #E5A0B4 #D6E5A0 #A0E5D2
split-complementary
#AFA0E5 #E5D2A0 #B4E5A0
monochromatic
#5E40CB #8770D8 #AFA0E5 #D7D0F2 #EBE7F8

Accessibility & contrast

On white

2.34
#AFA0E5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.98
#AFA0E5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA0E5
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA0E5#FFFFFF#000000##000000
##AFA0E51.002.348.988.98
#FFFFFF2.341.0021.0021.00
#0000008.9821.001.001.00
##0000008.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8FAAE8
Deuteranopia (green-blind)
#91A8E3
Tritanopia (blue-blind)
#A4ABB9
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #afa0e5;
/* rgb */ color: rgb(175, 160, 229);
/* oklch */ color: oklch(74.4% 0.099 293.8);
Tailwind
colors: {
  custom: {
    50: '#c8bced',
    500: '#afa0e5',
    950: '#000000',
  },
}
SCSS
$custom: #afa0e5;
$custom-light: #c8bced;
$custom-dark: #000000;
JSON
{
  "hex": "#afa0e5",
  "rgb": {
    "r": 175,
    "g": 160,
    "b": 229
  },
  "hsl": {
    "h": 253.043,
    "s": 57.025,
    "l": 76.275
  },
  "oklch": {
    "l": 0.74391,
    "c": 0.09917,
    "h": 293.8
  },
  "luminance": 0.39913
}

Semantic roles & 50–950 ramp

primary
#AFA0E5
secondary
#EBF0DB
accent
#C521A1
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA0E5

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

Preview Lab → · Contrast checker → · Palette generator →

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