#AFA2F0#AFA2F0

#AFA2F0 is a light, moderate violet. Relative luminance 0.412; OKLCH L 75.3% C 0.111 H 291.1°. Best body text is #000000 at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#AFA2F0
RGBrgb(175, 162, 240)
HSLhsl(250, 72%, 79%)
HSVhsv(250, 33%, 94%)
CMYKcmyk(27.1%, 32.5%, 0%, 5.9%)
CIE-LABlab(70.35, 21.30, -37.38)
CIE-LCHlch(70.35, 43.02, 299.67°)
OKLaboklab(75.26% 0.0401 -0.1038)
OKLCHoklch(75.26% 0.111 291.1)
XYZxyz(46.3238, 41.2451, 87.9417)
Luminance0.4125 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA2F0 #E3F0A2
analogous
#A2BCF0 #AFA2F0 #D6A2F0
triadic
#AFA2F0 #F0AFA2 #A2F0AF
tetradic
#AFA2F0 #F0A2BC #E3F0A2 #A2F0D6
square
#AFA2F0 #F0A2BC #E3F0A2 #A2F0D6
split-complementary
#AFA2F0 #F0D6A2 #BCF0A2
monochromatic
#5439DF #826DE8 #AFA2F0 #DCD7F9 #E8E5FB

Accessibility & contrast

On white

2.27
#AFA2F0 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.25
#AFA2F0 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA2F0
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA2F0#FFFFFF#000000##000000
##AFA2F01.002.279.259.25
#FFFFFF2.271.0021.0021.00
#0000009.2521.001.001.00
##0000009.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8DADF3
Deuteranopia (green-blind)
#8EAAEE
Tritanopia (blue-blind)
#A1AFBE
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afa2f0;
/* rgb */ color: rgb(175, 162, 240);
/* oklch */ color: oklch(75.3% 0.111 291.1);
Tailwind
colors: {
  custom: {
    50: '#c8bdf5',
    500: '#afa2f0',
    950: '#000000',
  },
}
SCSS
$custom: #afa2f0;
$custom-light: #c8bdf5;
$custom-dark: #000000;
JSON
{
  "hex": "#afa2f0",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 240
  },
  "hsl": {
    "h": 250,
    "s": 72.222,
    "l": 78.824
  },
  "oklch": {
    "l": 0.7526,
    "c": 0.11126,
    "h": 291.1
  },
  "luminance": 0.41246
}

Semantic roles & 50–950 ramp

primary
#AFA2F0
secondary
#EEF2D9
accent
#D411B4
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131217
muted
#828185

Preview Lab

Preview with #AFA2F0

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

Preview Lab → · Contrast checker → · Palette generator →

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