#AF7EFE#AF7EFE

#AF7EFE is a light, vivid violet. Relative luminance 0.312; OKLCH L 69.7% C 0.185 H 299.2°. Best body text is #000000 at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#AF7EFE
RGBrgb(175, 126, 254)
HSLhsl(263, 98%, 75%)
HSVhsv(263, 50%, 100%)
CMYKcmyk(31.1%, 50.4%, 0%, 0.4%)
CIE-LABlab(62.67, 44.82, -57.14)
CIE-LCHlch(62.67, 72.62, 308.11°)
OKLaboklab(69.67% 0.0902 -0.1611)
OKLCHoklch(69.67% 0.185 299.2)
XYZxyz(43.0252, 31.1911, 97.5004)
Luminance0.3119 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7EFE #CDFE7E
analogous
#7E8DFE #AF7EFE #EF7EFE
triadic
#AF7EFE #FEAF7E #7EFEAF
tetradic
#AF7EFE #FE7E8D #CDFE7E #7EFEEF
square
#AF7EFE #FE7E8D #CDFE7E #7EFEEF
split-complementary
#AF7EFE #FEEF7E #8DFE7E
monochromatic
#6405FD #8941FE #AF7EFE #D5BBFE #ECE1FF

Accessibility & contrast

On white

2.90
#AF7EFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.24
#AF7EFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF7EFE
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7EFE#FFFFFF#000000##000000
##AF7EFE1.002.907.247.24
#FFFFFF2.901.0021.0021.00
#0000007.2421.001.001.00
##0000007.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5197FF
Deuteranopia (green-blind)
#5E97FB
Tritanopia (blue-blind)
#9F96B2
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #af7efe;
/* rgb */ color: rgb(175, 126, 254);
/* oklch */ color: oklch(69.7% 0.185 299.2);
Tailwind
colors: {
  custom: {
    50: '#caa4ff',
    500: '#af7efe',
    950: '#000000',
  },
}
SCSS
$custom: #af7efe;
$custom-light: #caa4ff;
$custom-dark: #000000;
JSON
{
  "hex": "#af7efe",
  "rgb": {
    "r": 175,
    "g": 126,
    "b": 254
  },
  "hsl": {
    "h": 262.969,
    "s": 98.462,
    "l": 74.51
  },
  "oklch": {
    "l": 0.69671,
    "c": 0.18462,
    "h": 299.2
  },
  "luminance": 0.31191
}

Semantic roles & 50–950 ramp

primary
#AF7EFE
secondary
#EAF7D4
accent
#E6008E
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#140F18
muted
#827F86

Preview Lab

Preview with #AF7EFE

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

Preview Lab → · Contrast checker → · Palette generator →

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