#AFA2FA#AFA2FA

#AFA2FA is a light, vivid blue. Relative luminance 0.419; OKLCH L 75.7% C 0.125 H 289.8°. Best body text is #000000 at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#AFA2FA
RGBrgb(175, 162, 250)
HSLhsl(249, 90%, 81%)
HSVhsv(249, 35%, 98%)
CMYKcmyk(30%, 35.2%, 0%, 2%)
CIE-LABlab(70.77, 23.74, -42.16)
CIE-LCHlch(70.77, 48.39, 299.39°)
OKLaboklab(75.72% 0.0424 -0.1176)
OKLCHoklch(75.72% 0.125 289.8)
XYZxyz(47.8504, 41.8558, 95.9819)
Luminance0.4186 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA2FA #EDFAA2
analogous
#A2C1FA #AFA2FA #DBA2FA
triadic
#AFA2FA #FAAFA2 #A2FAAF
tetradic
#AFA2FA #FAA2C1 #EDFAA2 #A2FADB
square
#AFA2FA #FAA2C1 #EDFAA2 #A2FADB
split-complementary
#AFA2FA #FADBA2 #C1FAA2
monochromatic
#4B2EF4 #7D68F7 #AFA2FA #E1DCFD #E6E2FD

Accessibility & contrast

On white

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

On black

9.37
#AFA2FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA2FA
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA2FA#FFFFFF#000000##000000
##AFA2FA1.002.249.379.37
#FFFFFF2.241.0021.0021.00
#0000009.3721.001.001.00
##0000009.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#89AFFD
Deuteranopia (green-blind)
#89ABF8
Tritanopia (blue-blind)
#9EB2C2
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afa2fa;
/* rgb */ color: rgb(175, 162, 250);
/* oklch */ color: oklch(75.7% 0.125 289.8);
Tailwind
colors: {
  custom: {
    50: '#c9bdfc',
    500: '#afa2fa',
    950: '#000000',
  },
}
SCSS
$custom: #afa2fa;
$custom-light: #c9bdfc;
$custom-dark: #000000;
JSON
{
  "hex": "#afa2fa",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 250
  },
  "hsl": {
    "h": 248.864,
    "s": 89.796,
    "l": 80.784
  },
  "oklch": {
    "l": 0.75725,
    "c": 0.12498,
    "h": 289.8
  },
  "luminance": 0.41857
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA2FA

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

Preview Lab → · Contrast checker → · Palette generator →

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