#AF8DEF#AF8DEF

#AF8DEF is a light, vivid violet. Relative luminance 0.344; OKLCH L 71.4% C 0.143 H 298.7°. Best body text is #000000 at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#AF8DEF
RGBrgb(175, 141, 239)
HSLhsl(261, 75%, 75%)
HSVhsv(261, 41%, 94%)
CMYKcmyk(26.8%, 41%, 0%, 6.3%)
CIE-LABlab(65.28, 32.86, -44.77)
CIE-LCHlch(65.28, 55.53, 306.28°)
OKLaboklab(71.38% 0.0686 -0.1251)
OKLCHoklch(71.38% 0.143 298.7)
XYZxyz(42.7804, 34.3954, 86.0298)
Luminance0.3440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8DEF #CDEF8D
analogous
#8D9CEF #AF8DEF #E08DEF
triadic
#AF8DEF #EFAF8D #8DEFAF
tetradic
#AF8DEF #EF8D9C #CDEF8D #8DEFE0
square
#AF8DEF #EF8D9C #CDEF8D #8DEFE0
split-complementary
#AF8DEF #EFE08D #9CEF8D
monochromatic
#6422E0 #8957E7 #AF8DEF #D5C3F7 #ECE4FB

Accessibility & contrast

On white

2.67
#AF8DEF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.88
#AF8DEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF8DEF
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8DEF#FFFFFF#000000##000000
##AF8DEF1.002.677.887.88
#FFFFFF2.671.0021.0021.00
#0000007.8821.001.001.00
##0000007.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#729EF3
Deuteranopia (green-blind)
#799EEC
Tritanopia (blue-blind)
#A29EB3
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #af8def;
/* rgb */ color: rgb(175, 141, 239);
/* oklch */ color: oklch(71.4% 0.143 298.7);
Tailwind
colors: {
  custom: {
    50: '#c9aef4',
    500: '#af8def',
    950: '#000000',
  },
}
SCSS
$custom: #af8def;
$custom-light: #c9aef4;
$custom-dark: #000000;
JSON
{
  "hex": "#af8def",
  "rgb": {
    "r": 175,
    "g": 141,
    "b": 239
  },
  "hsl": {
    "h": 260.816,
    "s": 75.385,
    "l": 74.51
  },
  "oklch": {
    "l": 0.71381,
    "c": 0.14262,
    "h": 298.7
  },
  "luminance": 0.34396
}

Semantic roles & 50–950 ramp

primary
#AF8DEF
secondary
#EAF3D8
accent
#D80E92
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131017
muted
#827F85

Preview Lab

Preview with #AF8DEF

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

Preview Lab → · Contrast checker → · Palette generator →

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