#AFA2FC#AFA2FC

#AFA2FC is a light, vivid blue. Relative luminance 0.420; OKLCH L 75.8% C 0.128 H 289.6°. Best body text is #000000 at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#AFA2FC
RGBrgb(175, 162, 252)
HSLhsl(249, 94%, 81%)
HSVhsv(249, 36%, 99%)
CMYKcmyk(30.6%, 35.7%, 0%, 1.2%)
CIE-LABlab(70.86, 24.24, -43.11)
CIE-LCHlch(70.86, 49.46, 299.35°)
OKLaboklab(75.82% 0.0429 -0.1203)
OKLCHoklch(75.82% 0.128 289.6)
XYZxyz(48.1657, 41.9819, 97.6422)
Luminance0.4198 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA2FC #EFFCA2
analogous
#A2C2FC #AFA2FC #DCA2FC
triadic
#AFA2FC #FCAFA2 #A2FCAF
tetradic
#AFA2FC #FCA2C2 #EFFCA2 #A2FCDC
square
#AFA2FC #FCA2C2 #EFFCA2 #A2FCDC
split-complementary
#AFA2FC #FCDCA2 #C2FCA2
monochromatic
#492BF8 #7C67FA #AFA2FC #E2DDFE #E6E1FE

Accessibility & contrast

On white

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

On black

9.40
#AFA2FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA2FC
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA2FC#FFFFFF#000000##000000
##AFA2FC1.002.239.409.40
#FFFFFF2.231.0021.0021.00
#0000009.4021.001.001.00
##0000009.4021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa2fc;
/* rgb */ color: rgb(175, 162, 252);
/* oklch */ color: oklch(75.8% 0.128 289.6);
Tailwind
colors: {
  custom: {
    50: '#c9bdfd',
    500: '#afa2fc',
    950: '#000000',
  },
}
SCSS
$custom: #afa2fc;
$custom-light: #c9bdfd;
$custom-dark: #000000;
JSON
{
  "hex": "#afa2fc",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 252
  },
  "hsl": {
    "h": 248.667,
    "s": 93.75,
    "l": 81.176
  },
  "oklch": {
    "l": 0.7582,
    "c": 0.12771,
    "h": 289.6
  },
  "luminance": 0.41983
}

Semantic roles & 50–950 ramp

primary
#AFA2FC
secondary
#F1F6D5
accent
#E600C4
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131218
muted
#828186

Preview Lab

Preview with #AFA2FC

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

Preview Lab → · Contrast checker → · Palette generator →

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