#AFA7EC#AFA7EC

#AFA7EC is a light, moderate blue. Relative luminance 0.428; OKLCH L 76.0% C 0.098 H 289.2°. Best body text is #000000 at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#AFA7EC
RGBrgb(175, 167, 236)
HSLhsl(247, 64%, 79%)
HSVhsv(247, 29%, 93%)
CMYKcmyk(25.8%, 29.2%, 0%, 7.5%)
CIE-LABlab(71.42, 17.53, -33.53)
CIE-LCHlch(71.42, 37.84, 297.61°)
OKLaboklab(76.04% 0.0322 -0.0928)
OKLCHoklch(76.04% 0.098 289.2)
XYZxyz(46.6345, 42.8067, 85.1462)
Luminance0.4281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA7EC #E4ECA7
analogous
#A7C2EC #AFA7EC #D2A7EC
triadic
#AFA7EC #ECAFA7 #A7ECAF
tetradic
#AFA7EC #ECA7C2 #E4ECA7 #A7ECD2
square
#AFA7EC #ECA7C2 #E4ECA7 #A7ECD2
split-complementary
#AFA7EC #ECD2A7 #C2ECA7
monochromatic
#5342D6 #8175E1 #AFA7EC #DDD9F7 #E8E6FA

Accessibility & contrast

On white

2.20
#AFA7EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.56
#AFA7EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA7EC
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA7EC#FFFFFF#000000##000000
##AFA7EC1.002.209.569.56
#FFFFFF2.201.0021.0021.00
#0000009.5621.001.001.00
##0000009.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#95B0EF
Deuteranopia (green-blind)
#95ADEA
Tritanopia (blue-blind)
#A1B3C0
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #afa7ec;
/* rgb */ color: rgb(175, 167, 236);
/* oklch */ color: oklch(76.0% 0.098 289.2);
Tailwind
colors: {
  custom: {
    50: '#c8c1f2',
    500: '#afa7ec',
    950: '#000000',
  },
}
SCSS
$custom: #afa7ec;
$custom-light: #c8c1f2;
$custom-dark: #000000;
JSON
{
  "hex": "#afa7ec",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 236
  },
  "hsl": {
    "h": 246.957,
    "s": 64.486,
    "l": 79.02
  },
  "oklch": {
    "l": 0.76035,
    "c": 0.0982,
    "h": 289.2
  },
  "luminance": 0.42808
}

Semantic roles & 50–950 ramp

primary
#AFA7EC
secondary
#EEF1DA
accent
#CC19B8
background
#FCFBFE
surface
#F8F7FD
border
#D1D0D5
text
#131217
muted
#828185

Preview Lab

Preview with #AFA7EC

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

Preview Lab → · Contrast checker → · Palette generator →

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