#AFA5FC#AFA5FC

#AFA5FC is a light, vivid blue. Relative luminance 0.431; OKLCH L 76.4% C 0.123 H 288.4°. Best body text is #000000 at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#AFA5FC
RGBrgb(175, 165, 252)
HSLhsl(247, 94%, 82%)
HSVhsv(247, 35%, 99%)
CMYKcmyk(30.6%, 34.5%, 0%, 1.2%)
CIE-LABlab(71.59, 22.56, -41.97)
CIE-LCHlch(71.59, 47.64, 298.26°)
OKLaboklab(76.38% 0.0389 -0.117)
OKLCHoklch(76.38% 0.123 288.4)
XYZxyz(48.7005, 43.0514, 97.8205)
Luminance0.4305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA5FC #F2FCA5
analogous
#A5C7FC #AFA5FC #DBA5FC
triadic
#AFA5FC #FCAFA5 #A5FCAF
tetradic
#AFA5FC #FCA5C7 #F2FCA5 #A5FCDB
square
#AFA5FC #FCA5C7 #F2FCA5 #A5FCDB
split-complementary
#AFA5FC #FCDBA5 #C7FCA5
monochromatic
#462FF8 #7A6AFA #AFA5FC #E4E0FE #E5E1FE

Accessibility & contrast

On white

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

On black

9.61
#AFA5FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA5FC
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA5FC#FFFFFF#000000##000000
##AFA5FC1.002.199.619.61
#FFFFFF2.191.0021.0021.00
#0000009.6121.001.001.00
##0000009.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8CB1FF
Deuteranopia (green-blind)
#8BADFA
Tritanopia (blue-blind)
#9DB5C5
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #afa5fc;
/* rgb */ color: rgb(175, 165, 252);
/* oklch */ color: oklch(76.4% 0.123 288.4);
Tailwind
colors: {
  custom: {
    50: '#c9bffd',
    500: '#afa5fc',
    950: '#000000',
  },
}
SCSS
$custom: #afa5fc;
$custom-light: #c9bffd;
$custom-dark: #000000;
JSON
{
  "hex": "#afa5fc",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 252
  },
  "hsl": {
    "h": 246.897,
    "s": 93.548,
    "l": 81.765
  },
  "oklch": {
    "l": 0.7638,
    "c": 0.12329,
    "h": 288.4
  },
  "luminance": 0.43053
}

Semantic roles & 50–950 ramp

primary
#AFA5FC
secondary
#F2F6D5
accent
#E600CB
background
#FCFBFF
surface
#F8F7FF
border
#D1D0D7
text
#131217
muted
#828185

Preview Lab

Preview with #AFA5FC

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

Preview Lab → · Contrast checker → · Palette generator →

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