#AFA0EC#AFA0EC

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

Color values

HEX#AFA0EC
RGBrgb(175, 160, 236)
HSLhsl(252, 67%, 78%)
HSVhsv(252, 32%, 93%)
CMYKcmyk(25.8%, 32.2%, 0%, 7.5%)
CIE-LABlab(69.69, 21.46, -36.22)
CIE-LCHlch(69.69, 42.10, 300.64°)
OKLaboklab(74.7% 0.0419 -0.1004)
OKLCHoklch(74.7% 0.109 292.6)
XYZxyz(45.3867, 40.3110, 84.7302)
Luminance0.4031 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA0EC #DDECA0
analogous
#A0B7EC #AFA0EC #D5A0EC
triadic
#AFA0EC #ECAFA0 #A0ECAF
tetradic
#AFA0EC #ECA0B7 #DDECA0 #A0ECD5
square
#AFA0EC #ECA0B7 #DDECA0 #A0ECD5
split-complementary
#AFA0EC #ECD5A0 #B7ECA0
monochromatic
#593AD8 #846DE2 #AFA0EC #DAD3F6 #EAE5FA

Accessibility & contrast

On white

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

On black

9.06
#AFA0EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA0EC
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA0EC#FFFFFF#000000##000000
##AFA0EC1.002.329.069.06
#FFFFFF2.321.0021.0021.00
#0000009.0621.001.001.00
##0000009.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8CABEF
Deuteranopia (green-blind)
#8EA9EA
Tritanopia (blue-blind)
#A2ADBC
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #afa0ec;
/* rgb */ color: rgb(175, 160, 236);
/* oklch */ color: oklch(74.7% 0.109 292.6);
Tailwind
colors: {
  custom: {
    50: '#c8bcf2',
    500: '#afa0ec',
    950: '#000000',
  },
}
SCSS
$custom: #afa0ec;
$custom-light: #c8bcf2;
$custom-dark: #000000;
JSON
{
  "hex": "#afa0ec",
  "rgb": {
    "r": 175,
    "g": 160,
    "b": 236
  },
  "hsl": {
    "h": 251.842,
    "s": 66.667,
    "l": 77.647
  },
  "oklch": {
    "l": 0.74702,
    "c": 0.10881,
    "h": 292.6
  },
  "luminance": 0.40312
}

Semantic roles & 50–950 ramp

primary
#AFA0EC
secondary
#EDF1DA
accent
#CF17AA
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131217
muted
#828185

Preview Lab

Preview with #AFA0EC

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

Preview Lab → · Contrast checker → · Palette generator →

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