#AFA0EE#AFA0EE

#AFA0EE is a light, moderate violet. Relative luminance 0.404; OKLCH L 74.8% C 0.112 H 292.3°. Best body text is #000000 at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#AFA0EE
RGBrgb(175, 160, 238)
HSLhsl(252, 70%, 78%)
HSVhsv(252, 33%, 93%)
CMYKcmyk(26.5%, 32.8%, 0%, 6.7%)
CIE-LABlab(69.77, 21.94, -37.18)
CIE-LCHlch(69.77, 43.17, 300.54°)
OKLaboklab(74.79% 0.0424 -0.1032)
OKLCHoklch(74.79% 0.112 292.3)
XYZxyz(45.6789, 40.4279, 86.2691)
Luminance0.4043 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA0EE #DFEEA0
analogous
#A0B8EE #AFA0EE #D6A0EE
triadic
#AFA0EE #EEAFA0 #A0EEAF
tetradic
#AFA0EE #EEA0B8 #DFEEA0 #A0EED6
square
#AFA0EE #EEA0B8 #DFEEA0 #A0EED6
split-complementary
#AFA0EE #EED6A0 #B8EEA0
monochromatic
#5838DB #836CE5 #AFA0EE #DBD4F7 #E9E5FA

Accessibility & contrast

On white

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

On black

9.09
#AFA0EE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA0EE
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA0EE#FFFFFF#000000##000000
##AFA0EE1.002.319.099.09
#FFFFFF2.311.0021.0021.00
#0000009.0921.001.001.00
##0000009.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8BACF1
Deuteranopia (green-blind)
#8DA9EC
Tritanopia (blue-blind)
#A1ADBC
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #afa0ee;
/* rgb */ color: rgb(175, 160, 238);
/* oklch */ color: oklch(74.8% 0.112 292.3);
Tailwind
colors: {
  custom: {
    50: '#c8bcf4',
    500: '#afa0ee',
    950: '#000000',
  },
}
SCSS
$custom: #afa0ee;
$custom-light: #c8bcf4;
$custom-dark: #000000;
JSON
{
  "hex": "#afa0ee",
  "rgb": {
    "r": 175,
    "g": 160,
    "b": 238
  },
  "hsl": {
    "h": 251.538,
    "s": 69.643,
    "l": 78.039
  },
  "oklch": {
    "l": 0.74793,
    "c": 0.11156,
    "h": 292.3
  },
  "luminance": 0.40429
}

Semantic roles & 50–950 ramp

primary
#AFA0EE
secondary
#EDF2D9
accent
#D214AD
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131217
muted
#828185

Preview Lab

Preview with #AFA0EE

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

Preview Lab → · Contrast checker → · Palette generator →

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