#AF8FDA#AF8FDA

#AF8FDA is a light, moderate violet. Relative luminance 0.338; OKLCH L 70.7% C 0.112 H 303.3°. Best body text is #000000 at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#AF8FDA
RGBrgb(175, 143, 218)
HSLhsl(266, 50%, 71%)
HSVhsv(266, 34%, 85%)
CMYKcmyk(19.7%, 34.4%, 0%, 14.5%)
CIE-LABlab(64.82, 26.81, -33.87)
CIE-LCHlch(64.82, 43.19, 308.37°)
OKLaboklab(70.73% 0.0614 -0.0936)
OKLCHoklch(70.73% 0.112 303.3)
XYZxyz(40.1539, 33.8209, 70.7288)
Luminance0.3382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8FDA #BADA8F
analogous
#8F94DA #AF8FDA #D48FDA
triadic
#AF8FDA #DAAF8F #8FDAAF
tetradic
#AF8FDA #DA8F94 #BADA8F #8FDAD4
square
#AF8FDA #DA8F94 #BADA8F #8FDAD4
split-complementary
#AF8FDA #DAD48F #94DA8F
monochromatic
#6E3BB3 #8E61CB #AF8FDA #D0BDE9 #EFE8F7

Accessibility & contrast

On white

2.70
#AF8FDA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.76
#AF8FDA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF8FDA
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8FDA#FFFFFF#000000##000000
##AF8FDA1.002.707.767.76
#FFFFFF2.701.0021.0021.00
#0000007.7621.001.001.00
##0000007.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7F9CDD
Deuteranopia (green-blind)
#859DD8
Tritanopia (blue-blind)
#A89BAB
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #af8fda;
/* rgb */ color: rgb(175, 143, 218);
/* oklch */ color: oklch(70.7% 0.112 303.3);
Tailwind
colors: {
  custom: {
    50: '#c8b0e5',
    500: '#af8fda',
    950: '#000000',
  },
}
SCSS
$custom: #af8fda;
$custom-light: #c8b0e5;
$custom-dark: #000000;
JSON
{
  "hex": "#af8fda",
  "rgb": {
    "r": 175,
    "g": 143,
    "b": 218
  },
  "hsl": {
    "h": 265.6,
    "s": 50.336,
    "l": 70.784
  },
  "oklch": {
    "l": 0.70731,
    "c": 0.11197,
    "h": 303.3
  },
  "luminance": 0.33821
}

Semantic roles & 50–950 ramp

primary
#AF8FDA
secondary
#E4ECD8
accent
#BE287E
background
#FCFAFE
surface
#F8F4FC
border
#D1CED5
text
#131016
muted
#827F84

Preview Lab

Preview with #AF8FDA

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

Preview Lab → · Contrast checker → · Palette generator →

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