#AFA2FD#AFA2FD

#AFA2FD is a light, vivid blue. Relative luminance 0.420; OKLCH L 75.9% C 0.129 H 289.5°. Best body text is #000000 at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#AFA2FD
RGBrgb(175, 162, 253)
HSLhsl(249, 96%, 81%)
HSVhsv(249, 36%, 99%)
CMYKcmyk(30.8%, 36%, 0%, 0.8%)
CIE-LABlab(70.90, 24.49, -43.58)
CIE-LCHlch(70.90, 49.99, 299.33°)
OKLaboklab(75.87% 0.0431 -0.1217)
OKLCHoklch(75.87% 0.129 289.5)
XYZxyz(48.3246, 42.0454, 98.4790)
Luminance0.4205 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA2FD #F0FDA2
analogous
#A2C3FD #AFA2FD #DDA2FD
triadic
#AFA2FD #FDAFA2 #A2FDAF
tetradic
#AFA2FD #FDA2C3 #F0FDA2 #A2FDDD
square
#AFA2FD #FDA2C3 #F0FDA2 #A2FDDD
split-complementary
#AFA2FD #FDDDA2 #C3FDA2
monochromatic
#482AFA #7B66FC #AFA2FD #E3DEFE #E5E1FE

Accessibility & contrast

On white

2.23
#AFA2FD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.41
#AFA2FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA2FD
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA2FD#FFFFFF#000000##000000
##AFA2FD1.002.239.419.41
#FFFFFF2.231.0021.0021.00
#0000009.4121.001.001.00
##0000009.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#88AFFF
Deuteranopia (green-blind)
#88ABFB
Tritanopia (blue-blind)
#9DB2C4
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afa2fd;
/* rgb */ color: rgb(175, 162, 253);
/* oklch */ color: oklch(75.9% 0.129 289.5);
Tailwind
colors: {
  custom: {
    50: '#c9bdfe',
    500: '#afa2fd',
    950: '#000000',
  },
}
SCSS
$custom: #afa2fd;
$custom-light: #c9bdfe;
$custom-dark: #000000;
JSON
{
  "hex": "#afa2fd",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 253
  },
  "hsl": {
    "h": 248.571,
    "s": 95.789,
    "l": 81.373
  },
  "oklch": {
    "l": 0.75868,
    "c": 0.12907,
    "h": 289.5
  },
  "luminance": 0.42046
}

Semantic roles & 50–950 ramp

primary
#AFA2FD
secondary
#F2F7D4
accent
#E600C5
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131218
muted
#828186

Preview Lab

Preview with #AFA2FD

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

Preview Lab → · Contrast checker → · Palette generator →

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