#AFA7F2#AFA7F2

#AFA7F2 is a light, moderate blue. Relative luminance 0.432; OKLCH L 76.3% C 0.107 H 288.5°. Best body text is #000000 at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#AFA7F2
RGBrgb(175, 167, 242)
HSLhsl(246, 74%, 80%)
HSVhsv(246, 31%, 95%)
CMYKcmyk(27.7%, 31%, 0%, 5.1%)
CIE-LABlab(71.66, 18.98, -36.42)
CIE-LCHlch(71.66, 41.07, 297.52°)
OKLaboklab(76.3% 0.0338 -0.101)
OKLCHoklch(76.3% 0.107 288.5)
XYZxyz(47.5209, 43.1613, 89.8145)
Luminance0.4316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA7F2 #EAF2A7
analogous
#A7C4F2 #AFA7F2 #D4A7F2
triadic
#AFA7F2 #F2AFA7 #A7F2AF
tetradic
#AFA7F2 #F2A7C4 #EAF2A7 #A7F2D4
square
#AFA7F2 #F2A7C4 #EAF2A7 #A7F2D4
split-complementary
#AFA7F2 #F2D4A7 #C4F2A7
monochromatic
#4E3CE2 #7F72EA #AFA7F2 #DFDCFA #E7E4FB

Accessibility & contrast

On white

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

On black

9.63
#AFA7F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA7F2
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA7F2#FFFFFF#000000##000000
##AFA7F21.002.189.639.63
#FFFFFF2.181.0021.0021.00
#0000009.6321.001.001.00
##0000009.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#93B1F5
Deuteranopia (green-blind)
#92AEF0
Tritanopia (blue-blind)
#A0B4C2
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #afa7f2;
/* rgb */ color: rgb(175, 167, 242);
/* oklch */ color: oklch(76.3% 0.107 288.5);
Tailwind
colors: {
  custom: {
    50: '#c8c1f6',
    500: '#afa7f2',
    950: '#000000',
  },
}
SCSS
$custom: #afa7f2;
$custom-light: #c8c1f6;
$custom-dark: #000000;
JSON
{
  "hex": "#afa7f2",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 242
  },
  "hsl": {
    "h": 246.4,
    "s": 74.257,
    "l": 80.196
  },
  "oklch": {
    "l": 0.76299,
    "c": 0.10655,
    "h": 288.5
  },
  "luminance": 0.43162
}

Semantic roles & 50–950 ramp

primary
#AFA7F2
secondary
#F0F3D8
accent
#D60FC1
background
#FCFBFF
surface
#F8F7FE
border
#D1D0D6
text
#131217
muted
#828185

Preview Lab

Preview with #AFA7F2

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

Preview Lab → · Contrast checker → · Palette generator →

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