#AFA8FE#AFA8FE

#AFA8FE is a light, vivid blue. Relative luminance 0.443; OKLCH L 77.0% C 0.122 H 286.9°. Best body text is #000000 at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#AFA8FE
RGBrgb(175, 168, 254)
HSLhsl(245, 98%, 83%)
HSVhsv(245, 34%, 100%)
CMYKcmyk(31.1%, 33.9%, 0%, 0.4%)
CIE-LABlab(72.41, 21.38, -41.77)
CIE-LCHlch(72.41, 46.92, 297.10°)
OKLaboklab(77.04% 0.0354 -0.1164)
OKLCHoklch(77.04% 0.122 286.9)
XYZxyz(49.5665, 44.2738, 99.6809)
Luminance0.4427 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA8FE #F7FEA8
analogous
#A8CCFE #AFA8FE #DAA8FE
triadic
#AFA8FE #FEAFA8 #A8FEAF
tetradic
#AFA8FE #FEA8CC #F7FEA8 #A8FEDA
square
#AFA8FE #FEA8CC #F7FEA8 #A8FEDA
split-complementary
#AFA8FE #FEDAA8 #CCFEA8
monochromatic
#402FFD #776BFD #AFA8FE #E3E1FF #E3E1FF

Accessibility & contrast

On white

2.13
#AFA8FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.85
#AFA8FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA8FE
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA8FE#FFFFFF#000000##000000
##AFA8FE1.002.139.859.85
#FFFFFF2.131.0021.0021.00
#0000009.8521.001.001.00
##0000009.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8FB4FF
Deuteranopia (green-blind)
#8EAFFC
Tritanopia (blue-blind)
#9CB8C7
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #afa8fe;
/* rgb */ color: rgb(175, 168, 254);
/* oklch */ color: oklch(77.0% 0.122 286.9);
Tailwind
colors: {
  custom: {
    50: '#c9c1ff',
    500: '#afa8fe',
    950: '#000000',
  },
}
SCSS
$custom: #afa8fe;
$custom-light: #c9c1ff;
$custom-dark: #000000;
JSON
{
  "hex": "#afa8fe",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 254
  },
  "hsl": {
    "h": 244.884,
    "s": 97.727,
    "l": 82.745
  },
  "oklch": {
    "l": 0.77038,
    "c": 0.12167,
    "h": 286.9
  },
  "luminance": 0.44275
}

Semantic roles & 50–950 ramp

primary
#AFA8FE
secondary
#F4F7D4
accent
#E600D3
background
#FCFBFF
surface
#F8F7FF
border
#D1D0D7
text
#131218
muted
#828186

Preview Lab

Preview with #AFA8FE

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

Preview Lab → · Contrast checker → · Palette generator →

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