#AF8CFA#AF8CFA

#AF8CFA is a light, vivid violet. Relative luminance 0.348; OKLCH L 71.8% C 0.158 H 296.9°. Best body text is #000000 at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#AF8CFA
RGBrgb(175, 140, 250)
HSLhsl(259, 92%, 76%)
HSVhsv(259, 44%, 98%)
CMYKcmyk(30%, 44%, 0%, 2%)
CIE-LABlab(65.57, 36.09, -50.34)
CIE-LCHlch(65.57, 61.94, 305.64°)
OKLaboklab(71.78% 0.0717 -0.1413)
OKLCHoklch(71.78% 0.158 296.9)
XYZxyz(44.3084, 34.7717, 94.8012)
Luminance0.3477 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8CFA #D7FA8C
analogous
#8CA0FA #AF8CFA #E68CFA
triadic
#AF8CFA #FAAF8C #8CFAAF
tetradic
#AF8CFA #FA8CA0 #D7FA8C #8CFAE6
square
#AF8CFA #FA8CA0 #D7FA8C #8CFAE6
split-complementary
#AF8CFA #FAE68C #A0FA8C
monochromatic
#5D17F5 #8651F7 #AF8CFA #D8C7FD #EBE2FE

Accessibility & contrast

On white

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

On black

7.95
#AF8CFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF8CFA
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8CFA#FFFFFF#000000##000000
##AF8CFA1.002.647.957.95
#FFFFFF2.641.0021.0021.00
#0000007.9521.001.001.00
##0000007.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6AA0FE
Deuteranopia (green-blind)
#719EF7
Tritanopia (blue-blind)
#9FA0B7
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #af8cfa;
/* rgb */ color: rgb(175, 140, 250);
/* oklch */ color: oklch(71.8% 0.158 296.9);
Tailwind
colors: {
  custom: {
    50: '#c9aefc',
    500: '#af8cfa',
    950: '#000000',
  },
}
SCSS
$custom: #af8cfa;
$custom-light: #c9aefc;
$custom-dark: #000000;
JSON
{
  "hex": "#af8cfa",
  "rgb": {
    "r": 175,
    "g": 140,
    "b": 250
  },
  "hsl": {
    "h": 259.091,
    "s": 91.667,
    "l": 76.471
  },
  "oklch": {
    "l": 0.71775,
    "c": 0.15839,
    "h": 296.9
  },
  "luminance": 0.34772
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF8CFA

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

Preview Lab → · Contrast checker → · Palette generator →

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