#AF8CF6#AF8CF6

#AF8CF6 is a light, vivid violet. Relative luminance 0.345; OKLCH L 71.6% C 0.153 H 297.6°. Best body text is #000000 at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#AF8CF6
RGBrgb(175, 140, 246)
HSLhsl(260, 85%, 76%)
HSVhsv(260, 43%, 96%)
CMYKcmyk(28.9%, 43.1%, 0%, 3.5%)
CIE-LABlab(65.38, 35.11, -48.45)
CIE-LCHlch(65.38, 59.84, 305.93°)
OKLaboklab(71.57% 0.0711 -0.1358)
OKLCHoklch(71.57% 0.153 297.6)
XYZxyz(43.6879, 34.5235, 91.5329)
Luminance0.3452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8CF6 #D3F68C
analogous
#8C9EF6 #AF8CF6 #E48CF6
triadic
#AF8CF6 #F6AF8C #8CF6AF
tetradic
#AF8CF6 #F68C9E #D3F68C #8CF6E4
square
#AF8CF6 #F68C9E #D3F68C #8CF6E4
split-complementary
#AF8CF6 #F6E48C #9EF68C
monochromatic
#601AED #8853F2 #AF8CF6 #D6C5FA #EBE3FD

Accessibility & contrast

On white

2.66
#AF8CF6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.90
#AF8CF6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF8CF6
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8CF6#FFFFFF#000000##000000
##AF8CF61.002.667.907.90
#FFFFFF2.661.0021.0021.00
#0000007.9021.001.001.00
##0000007.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D9FFA
Deuteranopia (green-blind)
#749EF3
Tritanopia (blue-blind)
#A09FB5
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #af8cf6;
/* rgb */ color: rgb(175, 140, 246);
/* oklch */ color: oklch(71.6% 0.153 297.6);
Tailwind
colors: {
  custom: {
    50: '#c9aef9',
    500: '#af8cf6',
    950: '#000000',
  },
}
SCSS
$custom: #af8cf6;
$custom-light: #c9aef9;
$custom-dark: #000000;
JSON
{
  "hex": "#af8cf6",
  "rgb": {
    "r": 175,
    "g": 140,
    "b": 246
  },
  "hsl": {
    "h": 259.811,
    "s": 85.484,
    "l": 75.686
  },
  "oklch": {
    "l": 0.71565,
    "c": 0.15324,
    "h": 297.6
  },
  "luminance": 0.34524
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF8CF6

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

Preview Lab → · Contrast checker → · Palette generator →

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