#AFA0FE#AFA0FE

#AFA0FE is a light, vivid blue. Relative luminance 0.414; OKLCH L 75.5% C 0.133 H 290.1°. Best body text is #000000 at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#AFA0FE
RGBrgb(175, 160, 254)
HSLhsl(250, 98%, 81%)
HSVhsv(250, 37%, 100%)
CMYKcmyk(31.1%, 37%, 0%, 0.4%)
CIE-LABlab(70.46, 25.86, -44.82)
CIE-LCHlch(70.46, 51.74, 299.99°)
OKLaboklab(75.55% 0.0459 -0.1252)
OKLCHoklch(75.55% 0.133 290.1)
XYZxyz(48.1348, 41.4103, 99.2037)
Luminance0.4141 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA0FE #EFFEA0
analogous
#A0C0FE #AFA0FE #DEA0FE
triadic
#AFA0FE #FEAFA0 #A0FEAF
tetradic
#AFA0FE #FEA0C0 #EFFEA0 #A0FEDE
square
#AFA0FE #FEA0C0 #EFFEA0 #A0FEDE
split-complementary
#AFA0FE #FEDEA0 #C0FEA0
monochromatic
#4927FD #7C63FD #AFA0FE #E2DDFF #E5E1FF

Accessibility & contrast

On white

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

On black

9.28
#AFA0FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA0FE
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA0FE#FFFFFF#000000##000000
##AFA0FE1.002.269.289.28
#FFFFFF2.261.0021.0021.00
#0000009.2821.001.001.00
##0000009.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#84AEFF
Deuteranopia (green-blind)
#85AAFC
Tritanopia (blue-blind)
#9CB1C3
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afa0fe;
/* rgb */ color: rgb(175, 160, 254);
/* oklch */ color: oklch(75.5% 0.133 290.1);
Tailwind
colors: {
  custom: {
    50: '#c9bcff',
    500: '#afa0fe',
    950: '#000000',
  },
}
SCSS
$custom: #afa0fe;
$custom-light: #c9bcff;
$custom-dark: #000000;
JSON
{
  "hex": "#afa0fe",
  "rgb": {
    "r": 175,
    "g": 160,
    "b": 254
  },
  "hsl": {
    "h": 249.574,
    "s": 97.917,
    "l": 81.176
  },
  "oklch": {
    "l": 0.75546,
    "c": 0.13339,
    "h": 290.1
  },
  "luminance": 0.41411
}

Semantic roles & 50–950 ramp

primary
#AFA0FE
secondary
#F1F7D4
accent
#E600C1
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131218
muted
#828186

Preview Lab

Preview with #AFA0FE

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

Preview Lab → · Contrast checker → · Palette generator →

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