#AFA0FB#AFA0FB

#AFA0FB is a light, vivid blue. Relative luminance 0.412; OKLCH L 75.4% C 0.129 H 290.5°. Best body text is #000000 at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#AFA0FB
RGBrgb(175, 160, 251)
HSLhsl(250, 92%, 81%)
HSVhsv(250, 36%, 98%)
CMYKcmyk(30.3%, 36.3%, 0%, 1.6%)
CIE-LABlab(70.33, 25.11, -43.40)
CIE-LCHlch(70.33, 50.14, 300.06°)
OKLaboklab(75.4% 0.0453 -0.1211)
OKLCHoklch(75.4% 0.129 290.5)
XYZxyz(47.6581, 41.2196, 96.6933)
Luminance0.4122 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA0FB #ECFBA0
analogous
#A0BEFB #AFA0FB #DCA0FB
triadic
#AFA0FB #FBAFA0 #A0FBAF
tetradic
#AFA0FB #FBA0BE #ECFBA0 #A0FBDC
square
#AFA0FB #FBA0BE #ECFBA0 #A0FBDC
split-complementary
#AFA0FB #FBDCA0 #BEFBA0
monochromatic
#4C2BF6 #7E65F9 #AFA0FB #E0DBFD #E6E2FE

Accessibility & contrast

On white

2.27
#AFA0FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.24
#AFA0FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA0FB
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA0FB#FFFFFF#000000##000000
##AFA0FB1.002.279.249.24
#FFFFFF2.271.0021.0021.00
#0000009.2421.001.001.00
##0000009.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#86AEFF
Deuteranopia (green-blind)
#86AAF9
Tritanopia (blue-blind)
#9DB0C2
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afa0fb;
/* rgb */ color: rgb(175, 160, 251);
/* oklch */ color: oklch(75.4% 0.129 290.5);
Tailwind
colors: {
  custom: {
    50: '#c9bcfd',
    500: '#afa0fb',
    950: '#000000',
  },
}
SCSS
$custom: #afa0fb;
$custom-light: #c9bcfd;
$custom-dark: #000000;
JSON
{
  "hex": "#afa0fb",
  "rgb": {
    "r": 175,
    "g": 160,
    "b": 251
  },
  "hsl": {
    "h": 249.89,
    "s": 91.919,
    "l": 80.588
  },
  "oklch": {
    "l": 0.75401,
    "c": 0.12932,
    "h": 290.5
  },
  "luminance": 0.41221
}

Semantic roles & 50–950 ramp

primary
#AFA0FB
secondary
#F0F6D5
accent
#E600C0
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131217
muted
#828185

Preview Lab

Preview with #AFA0FB

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

Preview Lab → · Contrast checker → · Palette generator →

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