#AFA8FF#AFA8FF

#AFA8FF is a light, vivid blue. Relative luminance 0.443; OKLCH L 77.1% C 0.123 H 286.8°. Best body text is #000000 at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#AFA8FF
RGBrgb(175, 168, 255)
HSLhsl(245, 100%, 83%)
HSVhsv(245, 34%, 100%)
CMYKcmyk(31.4%, 34.1%, 0%, 0%)
CIE-LABlab(72.45, 21.63, -42.24)
CIE-LCHlch(72.45, 47.45, 297.11°)
OKLaboklab(77.09% 0.0356 -0.1178)
OKLCHoklch(77.09% 0.123 286.8)
XYZxyz(49.7271, 44.3380, 100.5265)
Luminance0.4434 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA8FF #F8FFA8
analogous
#A8CCFF #AFA8FF #DBA8FF
triadic
#AFA8FF #FFAFA8 #A8FFAF
tetradic
#AFA8FF #FFA8CC #F8FFA8 #A8FFDB
square
#AFA8FF #FFA8CC #F8FFA8 #A8FFDB
split-complementary
#AFA8FF #FFDBA8 #CCFFA8
monochromatic
#3E2EFF #776BFF #AFA8FF #E3E0FF #E3E0FF

Accessibility & contrast

On white

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

On black

9.87
#AFA8FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA8FF
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA8FF#FFFFFF#000000##000000
##AFA8FF1.002.139.879.87
#FFFFFF2.131.0021.0021.00
#0000009.8721.001.001.00
##0000009.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8EB4FF
Deuteranopia (green-blind)
#8DAFFD
Tritanopia (blue-blind)
#9BB8C8
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #afa8ff;
/* rgb */ color: rgb(175, 168, 255);
/* oklch */ color: oklch(77.1% 0.123 286.8);
Tailwind
colors: {
  custom: {
    50: '#c9c1ff',
    500: '#afa8ff',
    950: '#000000',
  },
}
SCSS
$custom: #afa8ff;
$custom-light: #c9c1ff;
$custom-dark: #000000;
JSON
{
  "hex": "#afa8ff",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 255
  },
  "hsl": {
    "h": 244.828,
    "s": 100,
    "l": 82.941
  },
  "oklch": {
    "l": 0.77085,
    "c": 0.12305,
    "h": 286.8
  },
  "luminance": 0.44339
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA8FF

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

Preview Lab → · Contrast checker → · Palette generator →

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