#AF8CF9#AF8CF9

#AF8CF9 is a light, vivid violet. Relative luminance 0.347; OKLCH L 71.7% C 0.157 H 297.1°. Best body text is #000000 at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#AF8CF9
RGBrgb(175, 140, 249)
HSLhsl(259, 90%, 76%)
HSVhsv(259, 44%, 98%)
CMYKcmyk(29.7%, 43.8%, 0%, 2.4%)
CIE-LABlab(65.52, 35.85, -49.87)
CIE-LCHlch(65.52, 61.42, 305.71°)
OKLaboklab(71.72% 0.0715 -0.1399)
OKLCHoklch(71.72% 0.157 297.1)
XYZxyz(44.1520, 34.7092, 93.9776)
Luminance0.3471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8CF9 #D6F98C
analogous
#8CA0F9 #AF8CF9 #E68CF9
triadic
#AF8CF9 #F9AF8C #8CF9AF
tetradic
#AF8CF9 #F98CA0 #D6F98C #8CF9E6
square
#AF8CF9 #F98CA0 #D6F98C #8CF9E6
split-complementary
#AF8CF9 #F9E68C #A0F98C
monochromatic
#5E18F3 #8752F6 #AF8CF9 #D7C6FC #EBE2FD

Accessibility & contrast

On white

2.64
#AF8CF9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.94
#AF8CF9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF8CF9
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8CF9#FFFFFF#000000##000000
##AF8CF91.002.647.947.94
#FFFFFF2.641.0021.0021.00
#0000007.9421.001.001.00
##0000007.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6BA0FD
Deuteranopia (green-blind)
#729EF6
Tritanopia (blue-blind)
#9FA0B7
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #af8cf9;
/* rgb */ color: rgb(175, 140, 249);
/* oklch */ color: oklch(71.7% 0.157 297.1);
Tailwind
colors: {
  custom: {
    50: '#c9aefc',
    500: '#af8cf9',
    950: '#000000',
  },
}
SCSS
$custom: #af8cf9;
$custom-light: #c9aefc;
$custom-dark: #000000;
JSON
{
  "hex": "#af8cf9",
  "rgb": {
    "r": 175,
    "g": 140,
    "b": 249
  },
  "hsl": {
    "h": 259.266,
    "s": 90.083,
    "l": 76.275
  },
  "oklch": {
    "l": 0.71723,
    "c": 0.1571,
    "h": 297.1
  },
  "luminance": 0.3471
}

Semantic roles & 50–950 ramp

primary
#AF8CF9
secondary
#EBF6D5
accent
#E6009C
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#131017
muted
#827F85

Preview Lab

Preview with #AF8CF9

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

Preview Lab → · Contrast checker → · Palette generator →

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