#AFA5FA#AFA5FA

#AFA5FA is a light, vivid blue. Relative luminance 0.429; OKLCH L 76.3% C 0.121 H 288.6°. Best body text is #000000 at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#AFA5FA
RGBrgb(175, 165, 250)
HSLhsl(247, 89%, 81%)
HSVhsv(247, 34%, 98%)
CMYKcmyk(30%, 34%, 0%, 2%)
CIE-LABlab(71.50, 22.06, -41.02)
CIE-LCHlch(71.50, 46.57, 298.27°)
OKLaboklab(76.29% 0.0384 -0.1143)
OKLCHoklch(76.29% 0.121 288.6)
XYZxyz(48.3852, 42.9253, 96.1601)
Luminance0.4293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA5FA #F0FAA5
analogous
#A5C6FA #AFA5FA #DAA5FA
triadic
#AFA5FA #FAAFA5 #A5FAAF
tetradic
#AFA5FA #FAA5C6 #F0FAA5 #A5FADA
square
#AFA5FA #FAA5C6 #F0FAA5 #A5FADA
split-complementary
#AFA5FA #FADAA5 #C6FAA5
monochromatic
#4831F4 #7B6BF7 #AFA5FA #E3DFFD #E5E2FD

Accessibility & contrast

On white

2.19
#AFA5FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.59
#AFA5FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA5FA
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA5FA#FFFFFF#000000##000000
##AFA5FA1.002.199.599.59
#FFFFFF2.191.0021.0021.00
#0000009.5921.001.001.00
##0000009.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8DB1FD
Deuteranopia (green-blind)
#8CADF8
Tritanopia (blue-blind)
#9DB4C4
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #afa5fa;
/* rgb */ color: rgb(175, 165, 250);
/* oklch */ color: oklch(76.3% 0.121 288.6);
Tailwind
colors: {
  custom: {
    50: '#c9bffc',
    500: '#afa5fa',
    950: '#000000',
  },
}
SCSS
$custom: #afa5fa;
$custom-light: #c9bffc;
$custom-dark: #000000;
JSON
{
  "hex": "#afa5fa",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 250
  },
  "hsl": {
    "h": 247.059,
    "s": 89.474,
    "l": 81.373
  },
  "oklch": {
    "l": 0.76286,
    "c": 0.12055,
    "h": 288.6
  },
  "luminance": 0.42926
}

Semantic roles & 50–950 ramp

primary
#AFA5FA
secondary
#F2F5D6
accent
#E600CA
background
#FCFBFF
surface
#F8F7FF
border
#D1D0D7
text
#131217
muted
#828185

Preview Lab

Preview with #AFA5FA

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

Preview Lab → · Contrast checker → · Palette generator →

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