#AFA0E2#AFA0E2

#AFA0E2 is a light, moderate violet. Relative luminance 0.397; OKLCH L 74.3% C 0.095 H 294.4°. Best body text is #000000 at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#AFA0E2
RGBrgb(175, 160, 226)
HSLhsl(254, 53%, 76%)
HSVhsv(254, 29%, 89%)
CMYKcmyk(22.6%, 29.2%, 0%, 11.4%)
CIE-LABlab(69.29, 19.09, -31.36)
CIE-LCHlch(69.29, 36.72, 301.33°)
OKLaboklab(74.26% 0.0393 -0.0865)
OKLCHoklch(74.26% 0.095 294.4)
XYZxyz(43.9743, 39.7461, 77.2918)
Luminance0.3975 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA0E2 #D3E2A0
analogous
#A0B2E2 #AFA0E2 #D0A0E2
triadic
#AFA0E2 #E2AFA0 #A0E2AF
tetradic
#AFA0E2 #E2A0B2 #D3E2A0 #A0E2D0
square
#AFA0E2 #E2A0B2 #D3E2A0 #A0E2D0
split-complementary
#AFA0E2 #E2D0A0 #B2E2A0
monochromatic
#6042C5 #8871D4 #AFA0E2 #D6CFF0 #EBE8F8

Accessibility & contrast

On white

2.35
#AFA0E2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.95
#AFA0E2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA0E2
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA0E2#FFFFFF#000000##000000
##AFA0E21.002.358.958.95
#FFFFFF2.351.0021.0021.00
#0000008.9521.001.001.00
##0000008.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#90AAE5
Deuteranopia (green-blind)
#92A8E0
Tritanopia (blue-blind)
#A5ABB7
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #afa0e2;
/* rgb */ color: rgb(175, 160, 226);
/* oklch */ color: oklch(74.3% 0.095 294.4);
Tailwind
colors: {
  custom: {
    50: '#c8bceb',
    500: '#afa0e2',
    950: '#000000',
  },
}
SCSS
$custom: #afa0e2;
$custom-light: #c8bceb;
$custom-dark: #000000;
JSON
{
  "hex": "#afa0e2",
  "rgb": {
    "r": 175,
    "g": 160,
    "b": 226
  },
  "hsl": {
    "h": 253.636,
    "s": 53.226,
    "l": 75.686
  },
  "oklch": {
    "l": 0.7426,
    "c": 0.09504,
    "h": 294.4
  },
  "luminance": 0.39747
}

Semantic roles & 50–950 ramp

primary
#AFA0E2
secondary
#EBEFDC
accent
#C1259D
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA0E2

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

Preview Lab → · Contrast checker → · Palette generator →

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