#AF8DFD#AF8DFD

#AF8DFD is a light, vivid violet. Relative luminance 0.353; OKLCH L 72.1% C 0.161 H 296.1°. Best body text is #000000 at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#AF8DFD
RGBrgb(175, 141, 253)
HSLhsl(258, 97%, 77%)
HSVhsv(258, 44%, 99%)
CMYKcmyk(30.8%, 44.3%, 0%, 0.8%)
CIE-LABlab(65.95, 36.28, -51.38)
CIE-LCHlch(65.95, 62.90, 305.22°)
OKLaboklab(72.11% 0.0708 -0.1443)
OKLCHoklch(72.11% 0.161 296.1)
XYZxyz(44.9293, 35.2550, 97.3472)
Luminance0.3526 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8DFD #DBFD8D
analogous
#8DA3FD #AF8DFD #E78DFD
triadic
#AF8DFD #FDAF8D #8DFDAF
tetradic
#AF8DFD #FD8DA3 #DBFD8D #8DFDE7
square
#AF8DFD #FD8DA3 #DBFD8D #8DFDE7
split-complementary
#AF8DFD #FDE78D #A3FD8D
monochromatic
#5B15FB #8551FC #AF8DFD #D9C9FE #EAE1FE

Accessibility & contrast

On white

2.61
#AF8DFD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.05
#AF8DFD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF8DFD
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8DFD#FFFFFF#000000##000000
##AF8DFD1.002.618.058.05
#FFFFFF2.611.0021.0021.00
#0000008.0521.001.001.00
##0000008.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6AA1FF
Deuteranopia (green-blind)
#709FFA
Tritanopia (blue-blind)
#9EA2B9
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #af8dfd;
/* rgb */ color: rgb(175, 141, 253);
/* oklch */ color: oklch(72.1% 0.161 296.1);
Tailwind
colors: {
  custom: {
    50: '#c9affe',
    500: '#af8dfd',
    950: '#000000',
  },
}
SCSS
$custom: #af8dfd;
$custom-light: #c9affe;
$custom-dark: #000000;
JSON
{
  "hex": "#af8dfd",
  "rgb": {
    "r": 175,
    "g": 141,
    "b": 253
  },
  "hsl": {
    "h": 258.214,
    "s": 96.552,
    "l": 77.255
  },
  "oklch": {
    "l": 0.72107,
    "c": 0.16072,
    "h": 296.1
  },
  "luminance": 0.35256
}

Semantic roles & 50–950 ramp

primary
#AF8DFD
secondary
#ECF7D4
accent
#E600A0
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#131018
muted
#827F86

Preview Lab

Preview with #AF8DFD

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

Preview Lab → · Contrast checker → · Palette generator →

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