#AF8CF8#AF8CF8

#AF8CF8 is a light, vivid violet. Relative luminance 0.346; OKLCH L 71.7% C 0.156 H 297.3°. Best body text is #000000 at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#AF8CF8
RGBrgb(175, 140, 248)
HSLhsl(259, 89%, 76%)
HSVhsv(259, 44%, 97%)
CMYKcmyk(29.4%, 43.5%, 0%, 2.7%)
CIE-LABlab(65.47, 35.60, -49.40)
CIE-LCHlch(65.47, 60.89, 305.78°)
OKLaboklab(71.67% 0.0714 -0.1385)
OKLCHoklch(71.67% 0.156 297.3)
XYZxyz(43.9965, 34.6470, 93.1583)
Luminance0.3465 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8CF8 #D5F88C
analogous
#8C9FF8 #AF8CF8 #E58CF8
triadic
#AF8CF8 #F8AF8C #8CF8AF
tetradic
#AF8CF8 #F88C9F #D5F88C #8CF8E5
square
#AF8CF8 #F88C9F #D5F88C #8CF8E5
split-complementary
#AF8CF8 #F8E58C #9FF88C
monochromatic
#5F19F1 #8752F4 #AF8CF8 #D7C6FC #EBE2FD

Accessibility & contrast

On white

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

On black

7.93
#AF8CF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF8CF8
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8CF8#FFFFFF#000000##000000
##AF8CF81.002.657.937.93
#FFFFFF2.651.0021.0021.00
#0000007.9321.001.001.00
##0000007.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C9FFC
Deuteranopia (green-blind)
#729EF5
Tritanopia (blue-blind)
#A09FB6
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #af8cf8;
/* rgb */ color: rgb(175, 140, 248);
/* oklch */ color: oklch(71.7% 0.156 297.3);
Tailwind
colors: {
  custom: {
    50: '#c9aefb',
    500: '#af8cf8',
    950: '#000000',
  },
}
SCSS
$custom: #af8cf8;
$custom-light: #c9aefb;
$custom-dark: #000000;
JSON
{
  "hex": "#af8cf8",
  "rgb": {
    "r": 175,
    "g": 140,
    "b": 248
  },
  "hsl": {
    "h": 259.444,
    "s": 88.525,
    "l": 76.078
  },
  "oklch": {
    "l": 0.7167,
    "c": 0.15582,
    "h": 297.3
  },
  "luminance": 0.34647
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF8CF8

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

Preview Lab → · Contrast checker → · Palette generator →

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