#AFA2F9#AFA2F9

#AFA2F9 is a light, vivid blue. Relative luminance 0.418; OKLCH L 75.7% C 0.124 H 290.0°. Best body text is #000000 at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#AFA2F9
RGBrgb(175, 162, 249)
HSLhsl(249, 88%, 81%)
HSVhsv(249, 35%, 98%)
CMYKcmyk(29.7%, 34.9%, 0%, 2.4%)
CIE-LABlab(70.73, 23.50, -41.69)
CIE-LCHlch(70.73, 47.85, 299.41°)
OKLaboklab(75.68% 0.0422 -0.1162)
OKLCHoklch(75.68% 0.124 290)
XYZxyz(47.6940, 41.7932, 95.1582)
Luminance0.4179 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA2F9 #ECF9A2
analogous
#A2C0F9 #AFA2F9 #DBA2F9
triadic
#AFA2F9 #F9AFA2 #A2F9AF
tetradic
#AFA2F9 #F9A2C0 #ECF9A2 #A2F9DB
square
#AFA2F9 #F9A2C0 #ECF9A2 #A2F9DB
split-complementary
#AFA2F9 #F9DBA2 #C0F9A2
monochromatic
#4C2FF2 #7E69F5 #AFA2F9 #E0DBFD #E6E2FD

Accessibility & contrast

On white

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

On black

9.36
#AFA2F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA2F9
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA2F9#FFFFFF#000000##000000
##AFA2F91.002.249.369.36
#FFFFFF2.241.0021.0021.00
#0000009.3621.001.001.00
##0000009.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#89AFFC
Deuteranopia (green-blind)
#8AABF7
Tritanopia (blue-blind)
#9EB2C2
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afa2f9;
/* rgb */ color: rgb(175, 162, 249);
/* oklch */ color: oklch(75.7% 0.124 290.0);
Tailwind
colors: {
  custom: {
    50: '#c9bdfb',
    500: '#afa2f9',
    950: '#000000',
  },
}
SCSS
$custom: #afa2f9;
$custom-light: #c9bdfb;
$custom-dark: #000000;
JSON
{
  "hex": "#afa2f9",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 249
  },
  "hsl": {
    "h": 248.966,
    "s": 87.879,
    "l": 80.588
  },
  "oklch": {
    "l": 0.75677,
    "c": 0.12361,
    "h": 290
  },
  "luminance": 0.41794
}

Semantic roles & 50–950 ramp

primary
#AFA2F9
secondary
#F0F5D6
accent
#E401C2
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131217
muted
#828185

Preview Lab

Preview with #AFA2F9

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

Preview Lab → · Contrast checker → · Palette generator →

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