#AF8BEE#AF8BEE

#AF8BEE is a light, vivid violet. Relative luminance 0.338; OKLCH L 71.0% C 0.144 H 299.5°. Best body text is #000000 at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#AF8BEE
RGBrgb(175, 139, 238)
HSLhsl(262, 74%, 74%)
HSVhsv(262, 42%, 93%)
CMYKcmyk(26.5%, 41.6%, 0%, 6.7%)
CIE-LABlab(64.77, 33.74, -45.02)
CIE-LCHlch(64.77, 56.26, 306.85°)
OKLaboklab(70.98% 0.0711 -0.1258)
OKLCHoklch(70.98% 0.144 299.5)
XYZxyz(42.3409, 33.7520, 85.1565)
Luminance0.3375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8BEE #CAEE8B
analogous
#8B99EE #AF8BEE #E18BEE
triadic
#AF8BEE #EEAF8B #8BEEAF
tetradic
#AF8BEE #EE8B99 #CAEE8B #8BEEE1
square
#AF8BEE #EE8B99 #CAEE8B #8BEEE1
split-complementary
#AF8BEE #EEE18B #99EE8B
monochromatic
#6521DE #8A56E6 #AF8BEE #D4C0F6 #EDE4FB

Accessibility & contrast

On white

2.71
#AF8BEE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.75
#AF8BEE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF8BEE
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8BEE#FFFFFF#000000##000000
##AF8BEE1.002.717.757.75
#FFFFFF2.711.0021.0021.00
#0000007.7521.001.001.00
##0000007.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#709DF2
Deuteranopia (green-blind)
#779CEB
Tritanopia (blue-blind)
#A39CB1
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #af8bee;
/* rgb */ color: rgb(175, 139, 238);
/* oklch */ color: oklch(71.0% 0.144 299.5);
Tailwind
colors: {
  custom: {
    50: '#c9adf4',
    500: '#af8bee',
    950: '#000000',
  },
}
SCSS
$custom: #af8bee;
$custom-light: #c9adf4;
$custom-dark: #000000;
JSON
{
  "hex": "#af8bee",
  "rgb": {
    "r": 175,
    "g": 139,
    "b": 238
  },
  "hsl": {
    "h": 261.818,
    "s": 74.436,
    "l": 73.922
  },
  "oklch": {
    "l": 0.7098,
    "c": 0.14449,
    "h": 299.5
  },
  "luminance": 0.33752
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF8BEE

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

Preview Lab → · Contrast checker → · Palette generator →

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