#AF99EB#AF99EB

#AF99EB is a light, moderate violet. Relative luminance 0.379; OKLCH L 73.4% C 0.118 H 295.7°. Best body text is #000000 at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#AF99EB
RGBrgb(175, 153, 235)
HSLhsl(256, 67%, 76%)
HSVhsv(256, 35%, 92%)
CMYKcmyk(25.5%, 34.9%, 0%, 7.8%)
CIE-LABlab(67.94, 25.15, -38.39)
CIE-LCHlch(67.94, 45.90, 303.23°)
OKLaboklab(73.35% 0.0513 -0.1067)
OKLCHoklch(73.35% 0.118 295.7)
XYZxyz(44.0623, 37.8941, 83.5741)
Luminance0.3790 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF99EB #D5EB99
analogous
#99ACEB #AF99EB #D899EB
triadic
#AF99EB #EBAF99 #99EBAF
tetradic
#AF99EB #EB99AC #D5EB99 #99EBD8
square
#AF99EB #EB99AC #D5EB99 #99EBD8
split-complementary
#AF99EB #EBD899 #ACEB99
monochromatic
#5F33D7 #8766E1 #AF99EB #D7CCF5 #EBE5FA

Accessibility & contrast

On white

2.45
#AF99EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.58
#AF99EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF99EB
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF99EB#FFFFFF#000000##000000
##AF99EB1.002.458.588.58
#FFFFFF2.451.0021.0021.00
#0000008.5821.001.001.00
##0000008.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#84A6EE
Deuteranopia (green-blind)
#87A4E9
Tritanopia (blue-blind)
#A3A7B7
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #af99eb;
/* rgb */ color: rgb(175, 153, 235);
/* oklch */ color: oklch(73.4% 0.118 295.7);
Tailwind
colors: {
  custom: {
    50: '#c8b7f1',
    500: '#af99eb',
    950: '#000000',
  },
}
SCSS
$custom: #af99eb;
$custom-light: #c8b7f1;
$custom-dark: #000000;
JSON
{
  "hex": "#af99eb",
  "rgb": {
    "r": 175,
    "g": 153,
    "b": 235
  },
  "hsl": {
    "h": 256.098,
    "s": 67.213,
    "l": 76.078
  },
  "oklch": {
    "l": 0.7335,
    "c": 0.11836,
    "h": 295.7
  },
  "luminance": 0.37895
}

Semantic roles & 50–950 ramp

primary
#AF99EB
secondary
#EBF1DA
accent
#CF169E
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131117
muted
#828085

Preview Lab

Preview with #AF99EB

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

Preview Lab → · Contrast checker → · Palette generator →

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