#AFA2CE#AFA2CE

#AFA2CE is a light, moderate violet. Relative luminance 0.394; OKLCH L 73.8% C 0.064 H 298.3°. Best body text is #000000 at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#AFA2CE
RGBrgb(175, 162, 206)
HSLhsl(258, 31%, 72%)
HSVhsv(258, 21%, 81%)
CMYKcmyk(15%, 21.4%, 0%, 19.2%)
CIE-LABlab(69.05, 13.46, -20.72)
CIE-LCHlch(69.05, 24.70, 303.01°)
OKLaboklab(73.83% 0.0305 -0.0565)
OKLCHoklch(73.83% 0.064 298.3)
XYZxyz(41.7378, 39.4107, 63.7887)
Luminance0.3941 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA2CE #C1CEA2
analogous
#A2ABCE #AFA2CE #C5A2CE
triadic
#AFA2CE #CEAFA2 #A2CEAF
tetradic
#AFA2CE #CEA2AB #C1CEA2 #A2CEC5
square
#AFA2CE #CEA2AB #C1CEA2 #A2CEC5
split-complementary
#AFA2CE #CEC5A2 #ABCEA2
monochromatic
#6B55A1 #8D7AB9 #AFA2CE #D1CAE3 #EEEBF4

Accessibility & contrast

On white

2.36
#AFA2CE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.88
#AFA2CE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA2CE
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA2CE#FFFFFF#000000##000000
##AFA2CE1.002.368.888.88
#FFFFFF2.361.0021.0021.00
#0000008.8821.001.001.00
##0000008.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#99A9D0
Deuteranopia (green-blind)
#9BA8CD
Tritanopia (blue-blind)
#AAA8B1
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #afa2ce;
/* rgb */ color: rgb(175, 162, 206);
/* oklch */ color: oklch(73.8% 0.064 298.3);
Tailwind
colors: {
  custom: {
    50: '#c7bddd',
    500: '#afa2ce',
    950: '#000000',
  },
}
SCSS
$custom: #afa2ce;
$custom-light: #c7bddd;
$custom-dark: #000000;
JSON
{
  "hex": "#afa2ce",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 206
  },
  "hsl": {
    "h": 257.727,
    "s": 30.986,
    "l": 72.157
  },
  "oklch": {
    "l": 0.7383,
    "c": 0.06415,
    "h": 298.3
  },
  "luminance": 0.39411
}

Semantic roles & 50–950 ramp

primary
#AFA2CE
secondary
#E8EBE0
accent
#AA3C89
background
#FCFBFD
surface
#F8F6FB
border
#D1D0D4
text
#131215
muted
#828183

Preview Lab

Preview with #AFA2CE

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

Preview Lab → · Contrast checker → · Palette generator →

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