#AFA5FF#AFA5FF

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

Color values

HEX#AFA5FF
RGBrgb(175, 165, 255)
HSLhsl(247, 100%, 82%)
HSVhsv(247, 35%, 100%)
CMYKcmyk(31.4%, 35.3%, 0%, 0%)
CIE-LABlab(71.72, 23.31, -43.39)
CIE-LCHlch(71.72, 49.25, 298.24°)
OKLaboklab(76.52% 0.0396 -0.1211)
OKLCHoklch(76.52% 0.127 288.1)
XYZxyz(49.1796, 43.2431, 100.3440)
Luminance0.4324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA5FF #F5FFA5
analogous
#A5C8FF #AFA5FF #DCA5FF
triadic
#AFA5FF #FFAFA5 #A5FFAF
tetradic
#AFA5FF #FFA5C8 #F5FFA5 #A5FFDC
square
#AFA5FF #FFA5C8 #F5FFA5 #A5FFDC
split-complementary
#AFA5FF #FFDCA5 #C8FFA5
monochromatic
#422BFF #7968FF #AFA5FF #E4E0FF #E4E0FF

Accessibility & contrast

On white

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

On black

9.65
#AFA5FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA5FF
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA5FF#FFFFFF#000000##000000
##AFA5FF1.002.189.659.65
#FFFFFF2.181.0021.0021.00
#0000009.6521.001.001.00
##0000009.6521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa5ff;
/* rgb */ color: rgb(175, 165, 255);
/* oklch */ color: oklch(76.5% 0.127 288.1);
Tailwind
colors: {
  custom: {
    50: '#c9bfff',
    500: '#afa5ff',
    950: '#000000',
  },
}
SCSS
$custom: #afa5ff;
$custom-light: #c9bfff;
$custom-dark: #000000;
JSON
{
  "hex": "#afa5ff",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 255
  },
  "hsl": {
    "h": 246.667,
    "s": 100,
    "l": 82.353
  },
  "oklch": {
    "l": 0.76522,
    "c": 0.1274,
    "h": 288.1
  },
  "luminance": 0.43244
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA5FF

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

Preview Lab → · Contrast checker → · Palette generator →

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