#AFA0E4#AFA0E4

#AFA0E4 is a light, moderate violet. Relative luminance 0.399; OKLCH L 74.3% C 0.098 H 294.0°. Best body text is #000000 at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#AFA0E4
RGBrgb(175, 160, 228)
HSLhsl(253, 56%, 76%)
HSVhsv(253, 30%, 89%)
CMYKcmyk(23.2%, 29.8%, 0%, 10.6%)
CIE-LABlab(69.37, 19.56, -32.34)
CIE-LCHlch(69.37, 37.79, 301.17°)
OKLaboklab(74.35% 0.0398 -0.0893)
OKLCHoklch(74.35% 0.098 294)
XYZxyz(44.2503, 39.8565, 78.7455)
Luminance0.3986 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA0E4 #D5E4A0
analogous
#A0B3E4 #AFA0E4 #D1A0E4
triadic
#AFA0E4 #E4AFA0 #A0E4AF
tetradic
#AFA0E4 #E4A0B3 #D5E4A0 #A0E4D1
square
#AFA0E4 #E4A0B3 #D5E4A0 #A0E4D1
split-complementary
#AFA0E4 #E4D1A0 #B3E4A0
monochromatic
#5F41C9 #8770D6 #AFA0E4 #D7D0F2 #EBE7F8

Accessibility & contrast

On white

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

On black

8.97
#AFA0E4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA0E4
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA0E4#FFFFFF#000000##000000
##AFA0E41.002.348.978.97
#FFFFFF2.341.0021.0021.00
#0000008.9721.001.001.00
##0000008.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8FAAE7
Deuteranopia (green-blind)
#91A8E2
Tritanopia (blue-blind)
#A4ABB8
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #afa0e4;
/* rgb */ color: rgb(175, 160, 228);
/* oklch */ color: oklch(74.3% 0.098 294.0);
Tailwind
colors: {
  custom: {
    50: '#c8bcec',
    500: '#afa0e4',
    950: '#000000',
  },
}
SCSS
$custom: #afa0e4;
$custom-light: #c8bcec;
$custom-dark: #000000;
JSON
{
  "hex": "#afa0e4",
  "rgb": {
    "r": 175,
    "g": 160,
    "b": 228
  },
  "hsl": {
    "h": 253.235,
    "s": 55.738,
    "l": 76.078
  },
  "oklch": {
    "l": 0.74347,
    "c": 0.0978,
    "h": 294
  },
  "luminance": 0.39857
}

Semantic roles & 50–950 ramp

primary
#AFA0E4
secondary
#EBEFDC
accent
#C322A0
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA0E4

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

Preview Lab → · Contrast checker → · Palette generator →

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