#AFA2DF#AFA2DF

#AFA2DF is a light, moderate violet. Relative luminance 0.403; OKLCH L 74.5% C 0.088 H 293.9°. Best body text is #000000 at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#AFA2DF
RGBrgb(175, 162, 223)
HSLhsl(253, 49%, 75%)
HSVhsv(253, 27%, 87%)
CMYKcmyk(21.5%, 27.4%, 0%, 12.5%)
CIE-LABlab(69.67, 17.28, -29.13)
CIE-LCHlch(69.67, 33.86, 300.67°)
OKLaboklab(74.52% 0.0356 -0.0802)
OKLCHoklch(74.52% 0.088 293.9)
XYZxyz(43.9158, 40.2819, 75.2592)
Luminance0.4028 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA2DF #D2DFA2
analogous
#A2B3DF #AFA2DF #CDA2DF
triadic
#AFA2DF #DFAFA2 #A2DFAF
tetradic
#AFA2DF #DFA2B3 #D2DFA2 #A2DFCD
square
#AFA2DF #DFA2B3 #D2DFA2 #A2DFCD
split-complementary
#AFA2DF #DFCDA2 #B3DFA2
monochromatic
#6147C0 #8874CF #AFA2DF #D6D0EF #EBE8F7

Accessibility & contrast

On white

2.32
#AFA2DF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.06
#AFA2DF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA2DF
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA2DF#FFFFFF#000000##000000
##AFA2DF1.002.329.069.06
#FFFFFF2.321.0021.0021.00
#0000009.0621.001.001.00
##0000009.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#94ABE2
Deuteranopia (green-blind)
#95A9DD
Tritanopia (blue-blind)
#A5ACB7
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #afa2df;
/* rgb */ color: rgb(175, 162, 223);
/* oklch */ color: oklch(74.5% 0.088 293.9);
Tailwind
colors: {
  custom: {
    50: '#c7bde9',
    500: '#afa2df',
    950: '#000000',
  },
}
SCSS
$custom: #afa2df;
$custom-light: #c7bde9;
$custom-dark: #000000;
JSON
{
  "hex": "#afa2df",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 223
  },
  "hsl": {
    "h": 252.787,
    "s": 48.8,
    "l": 75.49
  },
  "oklch": {
    "l": 0.74516,
    "c": 0.08774,
    "h": 293.9
  },
  "luminance": 0.40282
}

Semantic roles & 50–950 ramp

primary
#AFA2DF
secondary
#EAEEDD
accent
#BC299D
background
#FCFBFE
surface
#F8F6FC
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA2DF

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

Preview Lab → · Contrast checker → · Palette generator →

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