#AFA4FE#AFA4FE

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

Color values

HEX#AFA4FE
RGBrgb(175, 164, 254)
HSLhsl(247, 98%, 82%)
HSVhsv(247, 35%, 100%)
CMYKcmyk(31.1%, 35.4%, 0%, 0.4%)
CIE-LABlab(71.43, 23.62, -43.30)
CIE-LCHlch(71.43, 49.32, 298.61°)
OKLaboklab(76.29% 0.0407 -0.1208)
OKLCHoklch(76.29% 0.128 288.6)
XYZxyz(48.8394, 42.8195, 99.4385)
Luminance0.4282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA4FE #F3FEA4
analogous
#A4C6FE #AFA4FE #DCA4FE
triadic
#AFA4FE #FEAFA4 #A4FEAF
tetradic
#AFA4FE #FEA4C6 #F3FEA4 #A4FEDC
square
#AFA4FE #FEA4C6 #F3FEA4 #A4FEDC
split-complementary
#AFA4FE #FEDCA4 #C6FEA4
monochromatic
#452BFD #7A67FD #AFA4FE #E4E1FF #E4E1FF

Accessibility & contrast

On white

2.20
#AFA4FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.56
#AFA4FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA4FE
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA4FE#FFFFFF#000000##000000
##AFA4FE1.002.209.569.56
#FFFFFF2.201.0021.0021.00
#0000009.5621.001.001.00
##0000009.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8AB1FF
Deuteranopia (green-blind)
#89ADFC
Tritanopia (blue-blind)
#9CB4C5
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #afa4fe;
/* rgb */ color: rgb(175, 164, 254);
/* oklch */ color: oklch(76.3% 0.128 288.6);
Tailwind
colors: {
  custom: {
    50: '#c9bfff',
    500: '#afa4fe',
    950: '#000000',
  },
}
SCSS
$custom: #afa4fe;
$custom-light: #c9bfff;
$custom-dark: #000000;
JSON
{
  "hex": "#afa4fe",
  "rgb": {
    "r": 175,
    "g": 164,
    "b": 254
  },
  "hsl": {
    "h": 247.333,
    "s": 97.826,
    "l": 81.961
  },
  "oklch": {
    "l": 0.76288,
    "c": 0.1275,
    "h": 288.6
  },
  "luminance": 0.42821
}

Semantic roles & 50–950 ramp

primary
#AFA4FE
secondary
#F3F7D4
accent
#E600C9
background
#FCFBFF
surface
#F8F7FF
border
#D1D0D7
text
#131218
muted
#828186

Preview Lab

Preview with #AFA4FE

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

Preview Lab → · Contrast checker → · Palette generator →

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