#AFA1FA#AFA1FA

#AFA1FA is a light, vivid blue. Relative luminance 0.415; OKLCH L 75.5% C 0.126 H 290.2°. Best body text is #000000 at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#AFA1FA
RGBrgb(175, 161, 250)
HSLhsl(249, 90%, 81%)
HSVhsv(249, 36%, 98%)
CMYKcmyk(30%, 35.6%, 0%, 2%)
CIE-LABlab(70.53, 24.30, -42.54)
CIE-LCHlch(70.53, 48.99, 299.74°)
OKLaboklab(75.54% 0.0438 -0.1186)
OKLCHoklch(75.54% 0.126 290.2)
XYZxyz(47.6750, 41.5049, 95.9234)
Luminance0.4151 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA1FA #ECFAA1
analogous
#A1BFFA #AFA1FA #DBA1FA
triadic
#AFA1FA #FAAFA1 #A1FAAF
tetradic
#AFA1FA #FAA1BF #ECFAA1 #A1FADB
square
#AFA1FA #FAA1BF #ECFAA1 #A1FADB
split-complementary
#AFA1FA #FADBA1 #BFFAA1
monochromatic
#4C2DF4 #7E67F7 #AFA1FA #E0DBFD #E6E2FD

Accessibility & contrast

On white

2.26
#AFA1FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.30
#AFA1FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA1FA
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA1FA#FFFFFF#000000##000000
##AFA1FA1.002.269.309.30
#FFFFFF2.261.0021.0021.00
#0000009.3021.001.001.00
##0000009.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#88AEFE
Deuteranopia (green-blind)
#88ABF8
Tritanopia (blue-blind)
#9EB1C2
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afa1fa;
/* rgb */ color: rgb(175, 161, 250);
/* oklch */ color: oklch(75.5% 0.126 290.2);
Tailwind
colors: {
  custom: {
    50: '#c9bcfc',
    500: '#afa1fa',
    950: '#000000',
  },
}
SCSS
$custom: #afa1fa;
$custom-light: #c9bcfc;
$custom-dark: #000000;
JSON
{
  "hex": "#afa1fa",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 250
  },
  "hsl": {
    "h": 249.438,
    "s": 89.899,
    "l": 80.588
  },
  "oklch": {
    "l": 0.75539,
    "c": 0.12647,
    "h": 290.2
  },
  "luminance": 0.41506
}

Semantic roles & 50–950 ramp

primary
#AFA1FA
secondary
#F0F6D5
accent
#E600C1
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131217
muted
#828185

Preview Lab

Preview with #AFA1FA

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

Preview Lab → · Contrast checker → · Palette generator →

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