#AFA5EA#AFA5EA

#AFA5EA is a light, moderate blue. Relative luminance 0.420; OKLCH L 75.6% C 0.098 H 290.5°. Best body text is #000000 at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#AFA5EA
RGBrgb(175, 165, 234)
HSLhsl(249, 62%, 78%)
HSVhsv(249, 29%, 92%)
CMYKcmyk(25.2%, 29.5%, 0%, 8.2%)
CIE-LABlab(70.85, 18.18, -33.33)
CIE-LCHlch(70.85, 37.97, 298.60°)
OKLaboklab(75.56% 0.0344 -0.0922)
OKLCHoklch(75.56% 0.098 290.5)
XYZxyz(45.9820, 41.9640, 83.5032)
Luminance0.4197 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA5EA #E0EAA5
analogous
#A5BDEA #AFA5EA #D1A5EA
triadic
#AFA5EA #EAAFA5 #A5EAAF
tetradic
#AFA5EA #EAA5BD #E0EAA5 #A5EAD1
square
#AFA5EA #EAA5BD #E0EAA5 #A5EAD1
split-complementary
#AFA5EA #EAD1A5 #BDEAA5
monochromatic
#5742D3 #8373DE #AFA5EA #DBD7F6 #E9E6F9

Accessibility & contrast

On white

2.24
#AFA5EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.39
#AFA5EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA5EA
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA5EA#FFFFFF#000000##000000
##AFA5EA1.002.249.399.39
#FFFFFF2.241.0021.0021.00
#0000009.3921.001.001.00
##0000009.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#93AFED
Deuteranopia (green-blind)
#93ACE8
Tritanopia (blue-blind)
#A2B1BE
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afa5ea;
/* rgb */ color: rgb(175, 165, 234);
/* oklch */ color: oklch(75.6% 0.098 290.5);
Tailwind
colors: {
  custom: {
    50: '#c8bff1',
    500: '#afa5ea',
    950: '#000000',
  },
}
SCSS
$custom: #afa5ea;
$custom-light: #c8bff1;
$custom-dark: #000000;
JSON
{
  "hex": "#afa5ea",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 234
  },
  "hsl": {
    "h": 248.696,
    "s": 62.162,
    "l": 78.235
  },
  "oklch": {
    "l": 0.75564,
    "c": 0.09841,
    "h": 290.5
  },
  "luminance": 0.41965
}

Semantic roles & 50–950 ramp

primary
#AFA5EA
secondary
#EDF1DA
accent
#CA1CB1
background
#FCFBFE
surface
#F8F7FD
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA5EA

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

Preview Lab → · Contrast checker → · Palette generator →

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