#AFA2FB#AFA2FB

#AFA2FB is a light, vivid blue. Relative luminance 0.419; OKLCH L 75.8% C 0.126 H 289.7°. Best body text is #000000 at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#AFA2FB
RGBrgb(175, 162, 251)
HSLhsl(249, 92%, 81%)
HSVhsv(249, 35%, 98%)
CMYKcmyk(30.3%, 35.5%, 0%, 1.6%)
CIE-LABlab(70.81, 23.99, -42.64)
CIE-LCHlch(70.81, 48.92, 299.37°)
OKLaboklab(75.77% 0.0427 -0.1189)
OKLCHoklch(75.77% 0.126 289.7)
XYZxyz(48.0076, 41.9186, 96.8098)
Luminance0.4192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA2FB #EEFBA2
analogous
#A2C1FB #AFA2FB #DBA2FB
triadic
#AFA2FB #FBAFA2 #A2FBAF
tetradic
#AFA2FB #FBA2C1 #EEFBA2 #A2FBDB
square
#AFA2FB #FBA2C1 #EEFBA2 #A2FBDB
split-complementary
#AFA2FB #FBDBA2 #C1FBA2
monochromatic
#4A2DF6 #7D67F8 #AFA2FB #E1DDFE #E6E2FE

Accessibility & contrast

On white

2.24
#AFA2FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.38
#AFA2FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA2FB
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA2FB#FFFFFF#000000##000000
##AFA2FB1.002.249.389.38
#FFFFFF2.241.0021.0021.00
#0000009.3821.001.001.00
##0000009.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#88AFFF
Deuteranopia (green-blind)
#89ABF9
Tritanopia (blue-blind)
#9DB2C3
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afa2fb;
/* rgb */ color: rgb(175, 162, 251);
/* oklch */ color: oklch(75.8% 0.126 289.7);
Tailwind
colors: {
  custom: {
    50: '#c9bdfd',
    500: '#afa2fb',
    950: '#000000',
  },
}
SCSS
$custom: #afa2fb;
$custom-light: #c9bdfd;
$custom-dark: #000000;
JSON
{
  "hex": "#afa2fb",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 251
  },
  "hsl": {
    "h": 248.764,
    "s": 91.753,
    "l": 80.98
  },
  "oklch": {
    "l": 0.75772,
    "c": 0.12635,
    "h": 289.7
  },
  "luminance": 0.4192
}

Semantic roles & 50–950 ramp

primary
#AFA2FB
secondary
#F1F6D5
accent
#E600C4
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131217
muted
#828185

Preview Lab

Preview with #AFA2FB

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

Preview Lab → · Contrast checker → · Palette generator →

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