#AF9DFD#AF9DFD

#AF9DFD is a light, vivid violet. Relative luminance 0.403; OKLCH L 74.9% C 0.137 H 291.4°. Best body text is #000000 at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#AF9DFD
RGBrgb(175, 157, 253)
HSLhsl(251, 96%, 80%)
HSVhsv(251, 38%, 99%)
CMYKcmyk(30.8%, 37.9%, 0%, 0.8%)
CIE-LABlab(69.70, 27.30, -45.48)
CIE-LCHlch(69.70, 53.04, 300.98°)
OKLaboklab(74.95% 0.0497 -0.1271)
OKLCHoklch(74.95% 0.137 291.4)
XYZxyz(47.4613, 40.3188, 98.1912)
Luminance0.4032 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9DFD #EBFD9D
analogous
#9DBBFD #AF9DFD #DF9DFD
triadic
#AF9DFD #FDAF9D #9DFDAF
tetradic
#AF9DFD #FD9DBB #EBFD9D #9DFDDF
square
#AF9DFD #FD9DBB #EBFD9D #9DFDDF
split-complementary
#AF9DFD #FDDF9D #BBFD9D
monochromatic
#4D25FB #7E61FC #AF9DFD #E0D9FE #E7E1FE

Accessibility & contrast

On white

2.32
#AF9DFD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.06
#AF9DFD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9DFD
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9DFD#FFFFFF#000000##000000
##AF9DFD1.002.329.069.06
#FFFFFF2.321.0021.0021.00
#0000009.0621.001.001.00
##0000009.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#81ACFF
Deuteranopia (green-blind)
#82A8FB
Tritanopia (blue-blind)
#9DAEC1
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #af9dfd;
/* rgb */ color: rgb(175, 157, 253);
/* oklch */ color: oklch(74.9% 0.137 291.4);
Tailwind
colors: {
  custom: {
    50: '#c9bafe',
    500: '#af9dfd',
    950: '#000000',
  },
}
SCSS
$custom: #af9dfd;
$custom-light: #c9bafe;
$custom-dark: #000000;
JSON
{
  "hex": "#af9dfd",
  "rgb": {
    "r": 175,
    "g": 157,
    "b": 253
  },
  "hsl": {
    "h": 251.25,
    "s": 96,
    "l": 80.392
  },
  "oklch": {
    "l": 0.74947,
    "c": 0.13651,
    "h": 291.4
  },
  "luminance": 0.4032
}

Semantic roles & 50–950 ramp

primary
#AF9DFD
secondary
#F0F7D4
accent
#E600BA
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131118
muted
#828086

Preview Lab

Preview with #AF9DFD

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

Preview Lab → · Contrast checker → · Palette generator →

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