#AF9EFE#AF9EFE

#AF9EFE is a light, vivid violet. Relative luminance 0.407; OKLCH L 75.2% C 0.136 H 290.9°. Best body text is #000000 at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#AF9EFE
RGBrgb(175, 158, 254)
HSLhsl(251, 98%, 81%)
HSVhsv(251, 38%, 100%)
CMYKcmyk(31.1%, 37.8%, 0%, 0.4%)
CIE-LABlab(69.98, 26.99, -45.57)
CIE-LCHlch(69.98, 52.96, 300.63°)
OKLaboklab(75.18% 0.0486 -0.1274)
OKLCHoklch(75.18% 0.136 290.9)
XYZxyz(47.7909, 40.7224, 99.0890)
Luminance0.4072 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9EFE #EDFE9E
analogous
#9EBDFE #AF9EFE #DF9EFE
triadic
#AF9EFE #FEAF9E #9EFEAF
tetradic
#AF9EFE #FE9EBD #EDFE9E #9EFEDF
square
#AF9EFE #FE9EBD #EDFE9E #9EFEDF
split-complementary
#AF9EFE #FEDF9E #BDFE9E
monochromatic
#4B25FD #7D61FD #AF9EFE #E1DBFF #E6E1FF

Accessibility & contrast

On white

2.30
#AF9EFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.14
#AF9EFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9EFE
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9EFE#FFFFFF#000000##000000
##AF9EFE1.002.309.149.14
#FFFFFF2.301.0021.0021.00
#0000009.1421.001.001.00
##0000009.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#82ADFF
Deuteranopia (green-blind)
#83A9FC
Tritanopia (blue-blind)
#9DAFC2
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #af9efe;
/* rgb */ color: rgb(175, 158, 254);
/* oklch */ color: oklch(75.2% 0.136 290.9);
Tailwind
colors: {
  custom: {
    50: '#c9baff',
    500: '#af9efe',
    950: '#000000',
  },
}
SCSS
$custom: #af9efe;
$custom-light: #c9baff;
$custom-dark: #000000;
JSON
{
  "hex": "#af9efe",
  "rgb": {
    "r": 175,
    "g": 158,
    "b": 254
  },
  "hsl": {
    "h": 250.625,
    "s": 97.959,
    "l": 80.784
  },
  "oklch": {
    "l": 0.75179,
    "c": 0.13637,
    "h": 290.9
  },
  "luminance": 0.40723
}

Semantic roles & 50–950 ramp

primary
#AF9EFE
secondary
#F1F7D4
accent
#E600BD
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131118
muted
#828086

Preview Lab

Preview with #AF9EFE

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

Preview Lab → · Contrast checker → · Palette generator →

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