#AF8EFE#AF8EFE

#AF8EFE is a light, vivid violet. Relative luminance 0.356; OKLCH L 72.3% C 0.161 H 295.7°. Best body text is #000000 at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#AF8EFE
RGBrgb(175, 142, 254)
HSLhsl(258, 98%, 78%)
HSVhsv(258, 44%, 100%)
CMYKcmyk(31.1%, 44.1%, 0%, 0.4%)
CIE-LABlab(66.22, 35.96, -51.49)
CIE-LCHlch(66.22, 62.81, 304.93°)
OKLaboklab(72.33% 0.0696 -0.1446)
OKLCHoklch(72.33% 0.161 295.7)
XYZxyz(45.2372, 35.6151, 98.2378)
Luminance0.3562 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8EFE #DDFE8E
analogous
#8EA5FE #AF8EFE #E78EFE
triadic
#AF8EFE #FEAF8E #8EFEAF
tetradic
#AF8EFE #FE8EA5 #DDFE8E #8EFEE7
square
#AF8EFE #FE8EA5 #DDFE8E #8EFEE7
split-complementary
#AF8EFE #FEE78E #A5FE8E
monochromatic
#5915FD #8451FD #AF8EFE #DACBFF #EAE1FF

Accessibility & contrast

On white

2.59
#AF8EFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.12
#AF8EFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF8EFE
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8EFE#FFFFFF#000000##000000
##AF8EFE1.002.598.128.12
#FFFFFF2.591.0021.0021.00
#0000008.1221.001.001.00
##0000008.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6BA2FF
Deuteranopia (green-blind)
#719FFB
Tritanopia (blue-blind)
#9EA3BA
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #af8efe;
/* rgb */ color: rgb(175, 142, 254);
/* oklch */ color: oklch(72.3% 0.161 295.7);
Tailwind
colors: {
  custom: {
    50: '#c9afff',
    500: '#af8efe',
    950: '#000000',
  },
}
SCSS
$custom: #af8efe;
$custom-light: #c9afff;
$custom-dark: #000000;
JSON
{
  "hex": "#af8efe",
  "rgb": {
    "r": 175,
    "g": 142,
    "b": 254
  },
  "hsl": {
    "h": 257.679,
    "s": 98.246,
    "l": 77.647
  },
  "oklch": {
    "l": 0.72332,
    "c": 0.1605,
    "h": 295.7
  },
  "luminance": 0.35616
}

Semantic roles & 50–950 ramp

primary
#AF8EFE
secondary
#EDF7D4
accent
#E600A2
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#131018
muted
#827F86

Preview Lab

Preview with #AF8EFE

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

Preview Lab → · Contrast checker → · Palette generator →

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