#AFA0DF#AFA0DF

#AFA0DF is a light, moderate violet. Relative luminance 0.396; OKLCH L 74.1% C 0.091 H 295.0°. Best body text is #000000 at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#AFA0DF
RGBrgb(175, 160, 223)
HSLhsl(254, 50%, 75%)
HSVhsv(254, 28%, 87%)
CMYKcmyk(21.5%, 28.3%, 0%, 12.5%)
CIE-LABlab(69.17, 18.40, -29.89)
CIE-LCHlch(69.17, 35.10, 301.61°)
OKLaboklab(74.13% 0.0384 -0.0824)
OKLCHoklch(74.13% 0.091 295)
XYZxyz(43.5663, 39.5829, 75.1427)
Luminance0.3958 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA0DF #D0DFA0
analogous
#A0B0DF #AFA0DF #CFA0DF
triadic
#AFA0DF #DFAFA0 #A0DFAF
tetradic
#AFA0DF #DFA0B0 #D0DFA0 #A0DFCF
square
#AFA0DF #DFA0B0 #D0DFA0 #A0DFCF
split-complementary
#AFA0DF #DFCFA0 #B0DFA0
monochromatic
#6244C0 #8872D0 #AFA0DF #D6CEEE #ECE8F7

Accessibility & contrast

On white

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

On black

8.92
#AFA0DF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA0DF
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA0DF#FFFFFF#000000##000000
##AFA0DF1.002.368.928.92
#FFFFFF2.361.0021.0021.00
#0000008.9221.001.001.00
##0000008.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#91A9E2
Deuteranopia (green-blind)
#93A8DD
Tritanopia (blue-blind)
#A6AAB6
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #afa0df;
/* rgb */ color: rgb(175, 160, 223);
/* oklch */ color: oklch(74.1% 0.091 295.0);
Tailwind
colors: {
  custom: {
    50: '#c7bce9',
    500: '#afa0df',
    950: '#000000',
  },
}
SCSS
$custom: #afa0df;
$custom-light: #c7bce9;
$custom-dark: #000000;
JSON
{
  "hex": "#afa0df",
  "rgb": {
    "r": 175,
    "g": 160,
    "b": 223
  },
  "hsl": {
    "h": 254.286,
    "s": 49.606,
    "l": 75.098
  },
  "oklch": {
    "l": 0.74132,
    "c": 0.09089,
    "h": 295
  },
  "luminance": 0.39583
}

Semantic roles & 50–950 ramp

primary
#AFA0DF
secondary
#EAEEDD
accent
#BD299A
background
#FCFBFE
surface
#F8F6FC
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA0DF

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

Preview Lab → · Contrast checker → · Palette generator →

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