#AF8AEE#AF8AEE

#AF8AEE is a light, vivid violet. Relative luminance 0.335; OKLCH L 70.8% C 0.146 H 299.7°. Best body text is #000000 at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#AF8AEE
RGBrgb(175, 138, 238)
HSLhsl(262, 75%, 74%)
HSVhsv(262, 42%, 93%)
CMYKcmyk(26.5%, 42%, 0%, 6.7%)
CIE-LABlab(64.53, 34.30, -45.38)
CIE-LCHlch(64.53, 56.88, 307.08°)
OKLaboklab(70.81% 0.0725 -0.1268)
OKLCHoklch(70.81% 0.146 299.7)
XYZxyz(42.1968, 33.4637, 85.1084)
Luminance0.3346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8AEE #C9EE8A
analogous
#8A97EE #AF8AEE #E18AEE
triadic
#AF8AEE #EEAF8A #8AEEAF
tetradic
#AF8AEE #EE8A97 #C9EE8A #8AEEE1
square
#AF8AEE #EE8A97 #C9EE8A #8AEEE1
split-complementary
#AF8AEE #EEE18A #97EE8A
monochromatic
#6620DD #8A55E6 #AF8AEE #D4BFF6 #EDE4FB

Accessibility & contrast

On white

2.73
#AF8AEE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.69
#AF8AEE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF8AEE
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8AEE#FFFFFF#000000##000000
##AF8AEE1.002.737.697.69
#FFFFFF2.731.0021.0021.00
#0000007.6921.001.001.00
##0000007.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F9CF2
Deuteranopia (green-blind)
#769CEB
Tritanopia (blue-blind)
#A39BB1
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #af8aee;
/* rgb */ color: rgb(175, 138, 238);
/* oklch */ color: oklch(70.8% 0.146 299.7);
Tailwind
colors: {
  custom: {
    50: '#c9acf4',
    500: '#af8aee',
    950: '#000000',
  },
}
SCSS
$custom: #af8aee;
$custom-light: #c9acf4;
$custom-dark: #000000;
JSON
{
  "hex": "#af8aee",
  "rgb": {
    "r": 175,
    "g": 138,
    "b": 238
  },
  "hsl": {
    "h": 262.2,
    "s": 74.627,
    "l": 73.725
  },
  "oklch": {
    "l": 0.70806,
    "c": 0.14607,
    "h": 299.7
  },
  "luminance": 0.33464
}

Semantic roles & 50–950 ramp

primary
#AF8AEE
secondary
#E9F3D8
accent
#D70F8D
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131017
muted
#827F85

Preview Lab

Preview with #AF8AEE

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

Preview Lab → · Contrast checker → · Palette generator →

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