#AF9DEB#AF9DEB

#AF9DEB is a light, moderate violet. Relative luminance 0.392; OKLCH L 74.1% C 0.112 H 294.1°. Best body text is #000000 at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#AF9DEB
RGBrgb(175, 157, 235)
HSLhsl(254, 66%, 77%)
HSVhsv(254, 33%, 92%)
CMYKcmyk(25.5%, 33.2%, 0%, 7.8%)
CIE-LABlab(68.91, 22.90, -36.88)
CIE-LCHlch(68.91, 43.41, 301.84°)
OKLaboklab(74.09% 0.0458 -0.1023)
OKLCHoklch(74.09% 0.112 294.1)
XYZxyz(44.7280, 39.2255, 83.7959)
Luminance0.3923 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9DEB #D9EB9D
analogous
#9DB2EB #AF9DEB #D69DEB
triadic
#AF9DEB #EBAF9D #9DEBAF
tetradic
#AF9DEB #EB9DB2 #D9EB9D #9DEBD6
square
#AF9DEB #EB9DB2 #D9EB9D #9DEBD6
split-complementary
#AF9DEB #EBD69D #B2EB9D
monochromatic
#5C37D6 #866AE1 #AF9DEB #D8D0F5 #EAE6FA

Accessibility & contrast

On white

2.37
#AF9DEB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.85
#AF9DEB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9DEB
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9DEB#FFFFFF#000000##000000
##AF9DEB1.002.378.858.85
#FFFFFF2.371.0021.0021.00
#0000008.8521.001.001.00
##0000008.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#89A9EE
Deuteranopia (green-blind)
#8BA7E9
Tritanopia (blue-blind)
#A3AAB9
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #af9deb;
/* rgb */ color: rgb(175, 157, 235);
/* oklch */ color: oklch(74.1% 0.112 294.1);
Tailwind
colors: {
  custom: {
    50: '#c8baf1',
    500: '#af9deb',
    950: '#000000',
  },
}
SCSS
$custom: #af9deb;
$custom-light: #c8baf1;
$custom-dark: #000000;
JSON
{
  "hex": "#af9deb",
  "rgb": {
    "r": 175,
    "g": 157,
    "b": 235
  },
  "hsl": {
    "h": 253.846,
    "s": 66.102,
    "l": 76.863
  },
  "oklch": {
    "l": 0.74093,
    "c": 0.11208,
    "h": 294.1
  },
  "luminance": 0.39226
}

Semantic roles & 50–950 ramp

primary
#AF9DEB
secondary
#ECF1DA
accent
#CE18A4
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131117
muted
#828085

Preview Lab

Preview with #AF9DEB

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

Preview Lab → · Contrast checker → · Palette generator →

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