#AF8EF7#AF8EF7

#AF8EF7 is a light, vivid violet. Relative luminance 0.352; OKLCH L 72.0% C 0.151 H 296.9°. Best body text is #000000 at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#AF8EF7
RGBrgb(175, 142, 247)
HSLhsl(259, 87%, 76%)
HSVhsv(259, 43%, 97%)
CMYKcmyk(29.1%, 42.5%, 0%, 3.1%)
CIE-LABlab(65.88, 34.24, -48.20)
CIE-LCHlch(65.88, 59.12, 305.39°)
OKLaboklab(71.97% 0.0685 -0.135)
OKLCHoklch(71.97% 0.151 296.9)
XYZxyz(44.1367, 35.1749, 92.4418)
Luminance0.3518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8EF7 #D6F78E
analogous
#8EA2F7 #AF8EF7 #E48EF7
triadic
#AF8EF7 #F7AF8E #8EF7AF
tetradic
#AF8EF7 #F78EA2 #D6F78E #8EF7E4
square
#AF8EF7 #F78EA2 #D6F78E #8EF7E4
split-complementary
#AF8EF7 #F7E48E #A2F78E
monochromatic
#5E1CEF #8755F3 #AF8EF7 #D7C7FB #EBE2FD

Accessibility & contrast

On white

2.61
#AF8EF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.04
#AF8EF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF8EF7
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8EF7#FFFFFF#000000##000000
##AF8EF71.002.618.048.04
#FFFFFF2.611.0021.0021.00
#0000008.0421.001.001.00
##0000008.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6FA1FB
Deuteranopia (green-blind)
#759FF4
Tritanopia (blue-blind)
#A0A1B7
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #af8ef7;
/* rgb */ color: rgb(175, 142, 247);
/* oklch */ color: oklch(72.0% 0.151 296.9);
Tailwind
colors: {
  custom: {
    50: '#c9affa',
    500: '#af8ef7',
    950: '#000000',
  },
}
SCSS
$custom: #af8ef7;
$custom-light: #c9affa;
$custom-dark: #000000;
JSON
{
  "hex": "#af8ef7",
  "rgb": {
    "r": 175,
    "g": 142,
    "b": 247
  },
  "hsl": {
    "h": 258.857,
    "s": 86.777,
    "l": 76.275
  },
  "oklch": {
    "l": 0.71965,
    "c": 0.15143,
    "h": 296.9
  },
  "luminance": 0.35175
}

Semantic roles & 50–950 ramp

primary
#AF8EF7
secondary
#EBF5D6
accent
#E3029D
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#131017
muted
#827F85

Preview Lab

Preview with #AF8EF7

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

Preview Lab → · Contrast checker → · Palette generator →

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