#AFA0EB#AFA0EB

#AFA0EB is a light, moderate violet. Relative luminance 0.403; OKLCH L 74.7% C 0.107 H 292.8°. Best body text is #000000 at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#AFA0EB
RGBrgb(175, 160, 235)
HSLhsl(252, 65%, 77%)
HSVhsv(252, 32%, 92%)
CMYKcmyk(25.5%, 31.9%, 0%, 7.8%)
CIE-LABlab(69.65, 21.22, -35.73)
CIE-LCHlch(69.65, 41.56, 300.70°)
OKLaboklab(74.66% 0.0416 -0.099)
OKLCHoklch(74.66% 0.107 292.8)
XYZxyz(45.2418, 40.2531, 83.9672)
Luminance0.4025 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA0EB #DCEBA0
analogous
#A0B7EB #AFA0EB #D4A0EB
triadic
#AFA0EB #EBAFA0 #A0EBAF
tetradic
#AFA0EB #EBA0B7 #DCEBA0 #A0EBD4
square
#AFA0EB #EBA0B7 #DCEBA0 #A0EBD4
split-complementary
#AFA0EB #EBD4A0 #B7EBA0
monochromatic
#5A3BD6 #846DE0 #AFA0EB #DAD3F6 #EAE6FA

Accessibility & contrast

On white

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

On black

9.05
#AFA0EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA0EB
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA0EB#FFFFFF#000000##000000
##AFA0EB1.002.329.059.05
#FFFFFF2.321.0021.0021.00
#0000009.0521.001.001.00
##0000009.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8DABEE
Deuteranopia (green-blind)
#8EA9E9
Tritanopia (blue-blind)
#A2ADBB
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #afa0eb;
/* rgb */ color: rgb(175, 160, 235);
/* oklch */ color: oklch(74.7% 0.107 292.8);
Tailwind
colors: {
  custom: {
    50: '#c8bcf1',
    500: '#afa0eb',
    950: '#000000',
  },
}
SCSS
$custom: #afa0eb;
$custom-light: #c8bcf1;
$custom-dark: #000000;
JSON
{
  "hex": "#afa0eb",
  "rgb": {
    "r": 175,
    "g": 160,
    "b": 235
  },
  "hsl": {
    "h": 252,
    "s": 65.217,
    "l": 77.451
  },
  "oklch": {
    "l": 0.74657,
    "c": 0.10744,
    "h": 292.8
  },
  "luminance": 0.40254
}

Semantic roles & 50–950 ramp

primary
#AFA0EB
secondary
#ECF1DA
accent
#CD18A9
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131217
muted
#828185

Preview Lab

Preview with #AFA0EB

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

Preview Lab → · Contrast checker → · Palette generator →

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