#AFA0EF#AFA0EF

#AFA0EF is a light, moderate violet. Relative luminance 0.405; OKLCH L 74.8% C 0.113 H 292.2°. Best body text is #000000 at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#AFA0EF
RGBrgb(175, 160, 239)
HSLhsl(251, 71%, 78%)
HSVhsv(251, 33%, 94%)
CMYKcmyk(26.8%, 33.1%, 0%, 6.3%)
CIE-LABlab(69.81, 22.18, -37.66)
CIE-LCHlch(69.81, 43.71, 300.49°)
OKLaboklab(74.84% 0.0426 -0.1046)
OKLCHoklch(74.84% 0.113 292.2)
XYZxyz(45.8262, 40.4869, 87.0450)
Luminance0.4049 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA0EF #E0EFA0
analogous
#A0B8EF #AFA0EF #D6A0EF
triadic
#AFA0EF #EFAFA0 #A0EFAF
tetradic
#AFA0EF #EFA0B8 #E0EFA0 #A0EFD6
square
#AFA0EF #EFA0B8 #E0EFA0 #A0EFD6
split-complementary
#AFA0EF #EFD6A0 #B8EFA0
monochromatic
#5737DD #836CE6 #AFA0EF #DBD4F8 #E9E5FB

Accessibility & contrast

On white

2.31
#AFA0EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.10
#AFA0EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA0EF
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA0EF#FFFFFF#000000##000000
##AFA0EF1.002.319.109.10
#FFFFFF2.311.0021.0021.00
#0000009.1021.001.001.00
##0000009.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8BACF2
Deuteranopia (green-blind)
#8CA9ED
Tritanopia (blue-blind)
#A1AEBD
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #afa0ef;
/* rgb */ color: rgb(175, 160, 239);
/* oklch */ color: oklch(74.8% 0.113 292.2);
Tailwind
colors: {
  custom: {
    50: '#c8bcf4',
    500: '#afa0ef',
    950: '#000000',
  },
}
SCSS
$custom: #afa0ef;
$custom-light: #c8bcf4;
$custom-dark: #000000;
JSON
{
  "hex": "#afa0ef",
  "rgb": {
    "r": 175,
    "g": 160,
    "b": 239
  },
  "hsl": {
    "h": 251.392,
    "s": 71.171,
    "l": 78.235
  },
  "oklch": {
    "l": 0.74838,
    "c": 0.11293,
    "h": 292.2
  },
  "luminance": 0.40488
}

Semantic roles & 50–950 ramp

primary
#AFA0EF
secondary
#EDF2D9
accent
#D312AF
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131217
muted
#828185

Preview Lab

Preview with #AFA0EF

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

Preview Lab → · Contrast checker → · Palette generator →

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