#AFA5FE#AFA5FE

#AFA5FE is a light, vivid blue. Relative luminance 0.432; OKLCH L 76.5% C 0.126 H 288.2°. Best body text is #000000 at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#AFA5FE
RGBrgb(175, 165, 254)
HSLhsl(247, 98%, 82%)
HSVhsv(247, 35%, 100%)
CMYKcmyk(31.1%, 35%, 0%, 0.4%)
CIE-LABlab(71.68, 23.06, -42.91)
CIE-LCHlch(71.68, 48.72, 298.25°)
OKLaboklab(76.47% 0.0393 -0.1197)
OKLCHoklch(76.47% 0.126 288.2)
XYZxyz(49.0190, 43.1788, 99.4984)
Luminance0.4318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA5FE #F4FEA5
analogous
#A5C7FE #AFA5FE #DCA5FE
triadic
#AFA5FE #FEAFA5 #A5FEAF
tetradic
#AFA5FE #FEA5C7 #F4FEA5 #A5FEDC
square
#AFA5FE #FEA5C7 #F4FEA5 #A5FEDC
split-complementary
#AFA5FE #FEDCA5 #C7FEA5
monochromatic
#432CFD #7968FD #AFA5FE #E4E1FF #E4E1FF

Accessibility & contrast

On white

2.18
#AFA5FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.64
#AFA5FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA5FE
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA5FE#FFFFFF#000000##000000
##AFA5FE1.002.189.649.64
#FFFFFF2.181.0021.0021.00
#0000009.6421.001.001.00
##0000009.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8BB2FF
Deuteranopia (green-blind)
#8AADFC
Tritanopia (blue-blind)
#9CB5C6
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #afa5fe;
/* rgb */ color: rgb(175, 165, 254);
/* oklch */ color: oklch(76.5% 0.126 288.2);
Tailwind
colors: {
  custom: {
    50: '#c9bfff',
    500: '#afa5fe',
    950: '#000000',
  },
}
SCSS
$custom: #afa5fe;
$custom-light: #c9bfff;
$custom-dark: #000000;
JSON
{
  "hex": "#afa5fe",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 254
  },
  "hsl": {
    "h": 246.742,
    "s": 97.802,
    "l": 82.157
  },
  "oklch": {
    "l": 0.76474,
    "c": 0.12604,
    "h": 288.2
  },
  "luminance": 0.4318
}

Semantic roles & 50–950 ramp

primary
#AFA5FE
secondary
#F3F7D4
accent
#E600CC
background
#FCFBFF
surface
#F8F7FF
border
#D1D0D7
text
#131218
muted
#828186

Preview Lab

Preview with #AFA5FE

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

Preview Lab → · Contrast checker → · Palette generator →

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