#AF8AEF#AF8AEF

#AF8AEF is a light, vivid violet. Relative luminance 0.335; OKLCH L 70.9% C 0.147 H 299.5°. Best body text is #000000 at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#AF8AEF
RGBrgb(175, 138, 239)
HSLhsl(262, 76%, 74%)
HSVhsv(262, 42%, 94%)
CMYKcmyk(26.8%, 42.3%, 0%, 6.3%)
CIE-LABlab(64.58, 34.54, -45.86)
CIE-LCHlch(64.58, 57.41, 306.99°)
OKLaboklab(70.86% 0.0726 -0.1282)
OKLCHoklch(70.86% 0.147 299.5)
XYZxyz(42.3441, 33.5227, 85.8843)
Luminance0.3352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8AEF #CAEF8A
analogous
#8A98EF #AF8AEF #E28AEF
triadic
#AF8AEF #EFAF8A #8AEFAF
tetradic
#AF8AEF #EF8A98 #CAEF8A #8AEFE2
square
#AF8AEF #EF8A98 #CAEF8A #8AEFE2
split-complementary
#AF8AEF #EFE28A #98EF8A
monochromatic
#651FE0 #8A54E8 #AF8AEF #D4C0F6 #EDE4FB

Accessibility & contrast

On white

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

On black

7.70
#AF8AEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF8AEF
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8AEF#FFFFFF#000000##000000
##AF8AEF1.002.737.707.70
#FFFFFF2.731.0021.0021.00
#0000007.7021.001.001.00
##0000007.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E9CF3
Deuteranopia (green-blind)
#759CEC
Tritanopia (blue-blind)
#A39CB1
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #af8aef;
/* rgb */ color: rgb(175, 138, 239);
/* oklch */ color: oklch(70.9% 0.147 299.5);
Tailwind
colors: {
  custom: {
    50: '#c9acf4',
    500: '#af8aef',
    950: '#000000',
  },
}
SCSS
$custom: #af8aef;
$custom-light: #c9acf4;
$custom-dark: #000000;
JSON
{
  "hex": "#af8aef",
  "rgb": {
    "r": 175,
    "g": 138,
    "b": 239
  },
  "hsl": {
    "h": 261.98,
    "s": 75.94,
    "l": 73.922
  },
  "oklch": {
    "l": 0.70857,
    "c": 0.14736,
    "h": 299.5
  },
  "luminance": 0.33523
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF8AEF

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

Preview Lab → · Contrast checker → · Palette generator →

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