#AFA0FA#AFA0FA

#AFA0FA is a light, vivid violet. Relative luminance 0.412; OKLCH L 75.4% C 0.128 H 290.6°. Best body text is #000000 at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#AFA0FA
RGBrgb(175, 160, 250)
HSLhsl(250, 90%, 80%)
HSVhsv(250, 36%, 98%)
CMYKcmyk(30%, 36%, 0%, 2%)
CIE-LABlab(70.29, 24.87, -42.92)
CIE-LCHlch(70.29, 49.60, 300.09°)
OKLaboklab(75.35% 0.0451 -0.1197)
OKLCHoklch(75.35% 0.128 290.6)
XYZxyz(47.5009, 41.1568, 95.8654)
Luminance0.4116 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA0FA #EBFAA0
analogous
#A0BEFA #AFA0FA #DCA0FA
triadic
#AFA0FA #FAAFA0 #A0FAAF
tetradic
#AFA0FA #FAA0BE #EBFAA0 #A0FADC
square
#AFA0FA #FAA0BE #EBFAA0 #A0FADC
split-complementary
#AFA0FA #FADCA0 #BEFAA0
monochromatic
#4D2CF4 #7E66F7 #AFA0FA #E0DAFD #E7E2FD

Accessibility & contrast

On white

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

On black

9.23
#AFA0FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA0FA
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA0FA#FFFFFF#000000##000000
##AFA0FA1.002.279.239.23
#FFFFFF2.271.0021.0021.00
#0000009.2321.001.001.00
##0000009.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#86ADFE
Deuteranopia (green-blind)
#87AAF8
Tritanopia (blue-blind)
#9EB0C1
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afa0fa;
/* rgb */ color: rgb(175, 160, 250);
/* oklch */ color: oklch(75.4% 0.128 290.6);
Tailwind
colors: {
  custom: {
    50: '#c9bcfc',
    500: '#afa0fa',
    950: '#000000',
  },
}
SCSS
$custom: #afa0fa;
$custom-light: #c9bcfc;
$custom-dark: #000000;
JSON
{
  "hex": "#afa0fa",
  "rgb": {
    "r": 175,
    "g": 160,
    "b": 250
  },
  "hsl": {
    "h": 250,
    "s": 90,
    "l": 80.392
  },
  "oklch": {
    "l": 0.75353,
    "c": 0.12796,
    "h": 290.6
  },
  "luminance": 0.41158
}

Semantic roles & 50–950 ramp

primary
#AFA0FA
secondary
#F0F6D5
accent
#E600BF
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131217
muted
#828185

Preview Lab

Preview with #AFA0FA

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

Preview Lab → · Contrast checker → · Palette generator →

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