#AFA2EE#AFA2EE

#AFA2EE is a light, moderate violet. Relative luminance 0.411; OKLCH L 75.2% C 0.108 H 291.4°. Best body text is #000000 at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#AFA2EE
RGBrgb(175, 162, 238)
HSLhsl(250, 69%, 78%)
HSVhsv(250, 32%, 93%)
CMYKcmyk(26.5%, 31.9%, 0%, 6.7%)
CIE-LABlab(70.26, 20.81, -36.42)
CIE-LCHlch(70.26, 41.95, 299.75°)
OKLaboklab(75.17% 0.0396 -0.101)
OKLCHoklch(75.17% 0.109 291.4)
XYZxyz(46.0284, 41.1269, 86.3856)
Luminance0.4113 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA2EE #E1EEA2
analogous
#A2BBEE #AFA2EE #D5A2EE
triadic
#AFA2EE #EEAFA2 #A2EEAF
tetradic
#AFA2EE #EEA2BB #E1EEA2 #A2EED5
square
#AFA2EE #EEA2BB #E1EEA2 #A2EED5
split-complementary
#AFA2EE #EED5A2 #BBEEA2
monochromatic
#563BDB #826EE5 #AFA2EE #DCD6F7 #E9E5FA

Accessibility & contrast

On white

2.28
#AFA2EE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.23
#AFA2EE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA2EE
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA2EE#FFFFFF#000000##000000
##AFA2EE1.002.289.239.23
#FFFFFF2.281.0021.0021.00
#0000009.2321.001.001.00
##0000009.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8EADF1
Deuteranopia (green-blind)
#8FAAEC
Tritanopia (blue-blind)
#A1AFBD
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afa2ee;
/* rgb */ color: rgb(175, 162, 238);
/* oklch */ color: oklch(75.2% 0.108 291.4);
Tailwind
colors: {
  custom: {
    50: '#c8bdf4',
    500: '#afa2ee',
    950: '#000000',
  },
}
SCSS
$custom: #afa2ee;
$custom-light: #c8bdf4;
$custom-dark: #000000;
JSON
{
  "hex": "#afa2ee",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 238
  },
  "hsl": {
    "h": 250.263,
    "s": 69.091,
    "l": 78.431
  },
  "oklch": {
    "l": 0.7517,
    "c": 0.1085,
    "h": 291.4
  },
  "luminance": 0.41128
}

Semantic roles & 50–950 ramp

primary
#AFA2EE
secondary
#EEF2D9
accent
#D114B1
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131217
muted
#828185

Preview Lab

Preview with #AFA2EE

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

Preview Lab → · Contrast checker → · Palette generator →

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