#AFA7F0#AFA7F0

#AFA7F0 is a light, moderate blue. Relative luminance 0.430; OKLCH L 76.2% C 0.104 H 288.7°. Best body text is #000000 at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#AFA7F0
RGBrgb(175, 167, 240)
HSLhsl(247, 71%, 80%)
HSVhsv(247, 30%, 94%)
CMYKcmyk(27.1%, 30.4%, 0%, 5.9%)
CIE-LABlab(71.58, 18.50, -35.46)
CIE-LCHlch(71.58, 39.99, 297.55°)
OKLaboklab(76.21% 0.0333 -0.0983)
OKLCHoklch(76.21% 0.104 288.7)
XYZxyz(47.2221, 43.0418, 88.2411)
Luminance0.4304 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA7F0 #E8F0A7
analogous
#A7C4F0 #AFA7F0 #D3A7F0
triadic
#AFA7F0 #F0AFA7 #A7F0AF
tetradic
#AFA7F0 #F0A7C4 #E8F0A7 #A7F0D3
square
#AFA7F0 #F0A7C4 #E8F0A7 #A7F0D3
split-complementary
#AFA7F0 #F0D3A7 #C4F0A7
monochromatic
#503EDE #7F73E7 #AFA7F0 #DFDBF9 #E7E5FB

Accessibility & contrast

On white

2.19
#AFA7F0 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.61
#AFA7F0 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA7F0
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA7F0#FFFFFF#000000##000000
##AFA7F01.002.199.619.61
#FFFFFF2.191.0021.0021.00
#0000009.6121.001.001.00
##0000009.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#93B1F3
Deuteranopia (green-blind)
#93AEEE
Tritanopia (blue-blind)
#A0B4C1
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #afa7f0;
/* rgb */ color: rgb(175, 167, 240);
/* oklch */ color: oklch(76.2% 0.104 288.7);
Tailwind
colors: {
  custom: {
    50: '#c8c1f5',
    500: '#afa7f0',
    950: '#000000',
  },
}
SCSS
$custom: #afa7f0;
$custom-light: #c8c1f5;
$custom-dark: #000000;
JSON
{
  "hex": "#afa7f0",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 240
  },
  "hsl": {
    "h": 246.575,
    "s": 70.874,
    "l": 79.804
  },
  "oklch": {
    "l": 0.7621,
    "c": 0.10377,
    "h": 288.7
  },
  "luminance": 0.43043
}

Semantic roles & 50–950 ramp

primary
#AFA7F0
secondary
#EFF2D9
accent
#D313BE
background
#FCFBFE
surface
#F8F7FD
border
#D1D0D5
text
#131217
muted
#828185

Preview Lab

Preview with #AFA7F0

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

Preview Lab → · Contrast checker → · Palette generator →

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