#AF8CFC#AF8CFC

#AF8CFC is a light, vivid violet. Relative luminance 0.349; OKLCH L 71.9% C 0.161 H 296.5°. Best body text is #000000 at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#AF8CFC
RGBrgb(175, 140, 252)
HSLhsl(259, 95%, 77%)
HSVhsv(259, 44%, 99%)
CMYKcmyk(30.6%, 44.4%, 0%, 1.2%)
CIE-LABlab(65.67, 36.59, -51.28)
CIE-LCHlch(65.67, 62.99, 305.51°)
OKLaboklab(71.88% 0.0719 -0.144)
OKLCHoklch(71.88% 0.161 296.5)
XYZxyz(44.6237, 34.8978, 96.4615)
Luminance0.3490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8CFC #D9FC8C
analogous
#8CA1FC #AF8CFC #E78CFC
triadic
#AF8CFC #FCAF8C #8CFCAF
tetradic
#AF8CFC #FC8CA1 #D9FC8C #8CFCE7
square
#AF8CFC #FC8CA1 #D9FC8C #8CFCE7
split-complementary
#AF8CFC #FCE78C #A1FC8C
monochromatic
#5C15F9 #8650FA #AF8CFC #D8C8FE #EAE1FE

Accessibility & contrast

On white

2.63
#AF8CFC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.98
#AF8CFC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF8CFC
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8CFC#FFFFFF#000000##000000
##AF8CFC1.002.637.987.98
#FFFFFF2.631.0021.0021.00
#0000007.9821.001.001.00
##0000007.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#69A0FF
Deuteranopia (green-blind)
#709EF9
Tritanopia (blue-blind)
#9EA1B8
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #af8cfc;
/* rgb */ color: rgb(175, 140, 252);
/* oklch */ color: oklch(71.9% 0.161 296.5);
Tailwind
colors: {
  custom: {
    50: '#c9aefe',
    500: '#af8cfc',
    950: '#000000',
  },
}
SCSS
$custom: #af8cfc;
$custom-light: #c9aefe;
$custom-dark: #000000;
JSON
{
  "hex": "#af8cfc",
  "rgb": {
    "r": 175,
    "g": 140,
    "b": 252
  },
  "hsl": {
    "h": 258.75,
    "s": 94.915,
    "l": 76.863
  },
  "oklch": {
    "l": 0.71882,
    "c": 0.16096,
    "h": 296.5
  },
  "luminance": 0.34898
}

Semantic roles & 50–950 ramp

primary
#AF8CFC
secondary
#ECF6D5
accent
#E6009E
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#131018
muted
#827F86

Preview Lab

Preview with #AF8CFC

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

Preview Lab → · Contrast checker → · Palette generator →

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