#AFA7FF#AFA7FF

#AFA7FF is a light, vivid blue. Relative luminance 0.440; OKLCH L 76.9% C 0.124 H 287.3°. Best body text is #000000 at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#AFA7FF
RGBrgb(175, 167, 255)
HSLhsl(245, 100%, 83%)
HSVhsv(245, 35%, 100%)
CMYKcmyk(31.4%, 34.5%, 0%, 0%)
CIE-LABlab(72.21, 22.18, -42.62)
CIE-LCHlch(72.21, 48.05, 297.50°)
OKLaboklab(76.9% 0.0369 -0.1189)
OKLCHoklch(76.9% 0.125 287.3)
XYZxyz(49.5432, 43.9702, 100.4652)
Luminance0.4397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA7FF #F7FFA7
analogous
#A7CBFF #AFA7FF #DBA7FF
triadic
#AFA7FF #FFAFA7 #A7FFAF
tetradic
#AFA7FF #FFA7CB #F7FFA7 #A7FFDB
square
#AFA7FF #FFA7CB #F7FFA7 #A7FFDB
split-complementary
#AFA7FF #FFDBA7 #CBFFA7
monochromatic
#402DFF #776AFF #AFA7FF #E3E0FF #E3E0FF

Accessibility & contrast

On white

2.14
#AFA7FF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.79
#AFA7FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA7FF
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA7FF#FFFFFF#000000##000000
##AFA7FF1.002.149.799.79
#FFFFFF2.141.0021.0021.00
#0000009.7921.001.001.00
##0000009.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8DB3FF
Deuteranopia (green-blind)
#8CAFFD
Tritanopia (blue-blind)
#9BB7C7
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #afa7ff;
/* rgb */ color: rgb(175, 167, 255);
/* oklch */ color: oklch(76.9% 0.124 287.3);
Tailwind
colors: {
  custom: {
    50: '#c9c1ff',
    500: '#afa7ff',
    950: '#000000',
  },
}
SCSS
$custom: #afa7ff;
$custom-light: #c9c1ff;
$custom-dark: #000000;
JSON
{
  "hex": "#afa7ff",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 255
  },
  "hsl": {
    "h": 245.455,
    "s": 100,
    "l": 82.745
  },
  "oklch": {
    "l": 0.76897,
    "c": 0.1245,
    "h": 287.3
  },
  "luminance": 0.43971
}

Semantic roles & 50–950 ramp

primary
#AFA7FF
secondary
#F4F7D4
accent
#E600D1
background
#FCFBFF
surface
#F8F7FF
border
#D1D0D7
text
#131218
muted
#828186

Preview Lab

Preview with #AFA7FF

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

Preview Lab → · Contrast checker → · Palette generator →

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