#AF8CF7#AF8CF7

#AF8CF7 is a light, vivid violet. Relative luminance 0.346; OKLCH L 71.6% C 0.155 H 297.4°. Best body text is #000000 at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#AF8CF7
RGBrgb(175, 140, 247)
HSLhsl(260, 87%, 76%)
HSVhsv(260, 43%, 97%)
CMYKcmyk(29.1%, 43.3%, 0%, 3.1%)
CIE-LABlab(65.42, 35.36, -48.93)
CIE-LCHlch(65.42, 60.36, 305.86°)
OKLaboklab(71.62% 0.0712 -0.1371)
OKLCHoklch(71.62% 0.155 297.4)
XYZxyz(43.8418, 34.5851, 92.3435)
Luminance0.3459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8CF7 #D4F78C
analogous
#8C9EF7 #AF8CF7 #E48CF7
triadic
#AF8CF7 #F7AF8C #8CF7AF
tetradic
#AF8CF7 #F78C9E #D4F78C #8CF7E4
square
#AF8CF7 #F78C9E #D4F78C #8CF7E4
split-complementary
#AF8CF7 #F7E48C #9EF78C
monochromatic
#5F1AEF #8753F3 #AF8CF7 #D7C5FB #EBE2FD

Accessibility & contrast

On white

2.65
#AF8CF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.92
#AF8CF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF8CF7
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8CF7#FFFFFF#000000##000000
##AF8CF71.002.657.927.92
#FFFFFF2.651.0021.0021.00
#0000007.9221.001.001.00
##0000007.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C9FFB
Deuteranopia (green-blind)
#739EF4
Tritanopia (blue-blind)
#A09FB6
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #af8cf7;
/* rgb */ color: rgb(175, 140, 247);
/* oklch */ color: oklch(71.6% 0.155 297.4);
Tailwind
colors: {
  custom: {
    50: '#c9aefa',
    500: '#af8cf7',
    950: '#000000',
  },
}
SCSS
$custom: #af8cf7;
$custom-light: #c9aefa;
$custom-dark: #000000;
JSON
{
  "hex": "#af8cf7",
  "rgb": {
    "r": 175,
    "g": 140,
    "b": 247
  },
  "hsl": {
    "h": 259.626,
    "s": 86.992,
    "l": 75.882
  },
  "oklch": {
    "l": 0.71618,
    "c": 0.15452,
    "h": 297.4
  },
  "luminance": 0.34586
}

Semantic roles & 50–950 ramp

primary
#AF8CF7
secondary
#EBF5D6
accent
#E4029A
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#131017
muted
#827F85

Preview Lab

Preview with #AF8CF7

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

Preview Lab → · Contrast checker → · Palette generator →

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