#AFA2EC#AFA2EC

#AFA2EC is a light, moderate violet. Relative luminance 0.410; OKLCH L 75.1% C 0.106 H 291.7°. Best body text is #000000 at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#AFA2EC
RGBrgb(175, 162, 236)
HSLhsl(251, 66%, 78%)
HSVhsv(251, 31%, 93%)
CMYKcmyk(25.8%, 31.4%, 0%, 7.5%)
CIE-LABlab(70.18, 20.33, -35.45)
CIE-LCHlch(70.18, 40.87, 299.84°)
OKLaboklab(75.08% 0.0391 -0.0982)
OKLCHoklch(75.08% 0.106 291.7)
XYZxyz(45.7362, 41.0101, 84.8467)
Luminance0.4101 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA2EC #DFECA2
analogous
#A2BAEC #AFA2EC #D4A2EC
triadic
#AFA2EC #ECAFA2 #A2ECAF
tetradic
#AFA2EC #ECA2BA #DFECA2 #A2ECD4
square
#AFA2EC #ECA2BA #DFECA2 #A2ECD4
split-complementary
#AFA2EC #ECD4A2 #BAECA2
monochromatic
#583CD7 #836FE2 #AFA2EC #DBD5F6 #E9E6FA

Accessibility & contrast

On white

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

On black

9.20
#AFA2EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA2EC
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA2EC#FFFFFF#000000##000000
##AFA2EC1.002.289.209.20
#FFFFFF2.281.0021.0021.00
#0000009.2021.001.001.00
##0000009.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8FADEF
Deuteranopia (green-blind)
#90AAEA
Tritanopia (blue-blind)
#A2AFBD
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afa2ec;
/* rgb */ color: rgb(175, 162, 236);
/* oklch */ color: oklch(75.1% 0.106 291.7);
Tailwind
colors: {
  custom: {
    50: '#c8bdf2',
    500: '#afa2ec',
    950: '#000000',
  },
}
SCSS
$custom: #afa2ec;
$custom-light: #c8bdf2;
$custom-dark: #000000;
JSON
{
  "hex": "#afa2ec",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 236
  },
  "hsl": {
    "h": 250.541,
    "s": 66.071,
    "l": 78.039
  },
  "oklch": {
    "l": 0.7508,
    "c": 0.10574,
    "h": 291.7
  },
  "luminance": 0.41011
}

Semantic roles & 50–950 ramp

primary
#AFA2EC
secondary
#EDF1DA
accent
#CE18AE
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131217
muted
#828185

Preview Lab

Preview with #AFA2EC

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

Preview Lab → · Contrast checker → · Palette generator →

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