#AF7EF7#AF7EF7

#AF7EF7 is a light, vivid violet. Relative luminance 0.308; OKLCH L 69.3% C 0.176 H 300.6°. Best body text is #000000 at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#AF7EF7
RGBrgb(175, 126, 247)
HSLhsl(264, 88%, 73%)
HSVhsv(264, 49%, 97%)
CMYKcmyk(29.1%, 49%, 0%, 3.1%)
CIE-LABlab(62.30, 43.12, -53.88)
CIE-LCHlch(62.30, 69.01, 308.67°)
OKLaboklab(69.27% 0.0896 -0.1516)
OKLCHoklch(69.27% 0.176 300.6)
XYZxyz(41.9247, 30.7509, 91.7044)
Luminance0.3075 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7EF7 #C6F77E
analogous
#7E89F7 #AF7EF7 #EC7EF7
triadic
#AF7EF7 #F7AF7E #7EF7AF
tetradic
#AF7EF7 #F77E89 #C6F77E #7EF7EC
square
#AF7EF7 #F77E89 #C6F77E #7EF7EC
split-complementary
#AF7EF7 #F7EC7E #89F77E
monochromatic
#680FEC #8B44F3 #AF7EF7 #D3B8FB #EDE2FD

Accessibility & contrast

On white

2.94
#AF7EF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.15
#AF7EF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF7EF7
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7EF7#FFFFFF#000000##000000
##AF7EF71.002.947.157.15
#FFFFFF2.941.0021.0021.00
#0000007.1521.001.001.00
##0000007.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5796FB
Deuteranopia (green-blind)
#6396F4
Tritanopia (blue-blind)
#A194AF
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #af7ef7;
/* rgb */ color: rgb(175, 126, 247);
/* oklch */ color: oklch(69.3% 0.176 300.6);
Tailwind
colors: {
  custom: {
    50: '#caa4fa',
    500: '#af7ef7',
    950: '#000000',
  },
}
SCSS
$custom: #af7ef7;
$custom-light: #caa4fa;
$custom-dark: #000000;
JSON
{
  "hex": "#af7ef7",
  "rgb": {
    "r": 175,
    "g": 126,
    "b": 247
  },
  "hsl": {
    "h": 264.298,
    "s": 88.321,
    "l": 73.137
  },
  "oklch": {
    "l": 0.69273,
    "c": 0.17607,
    "h": 300.6
  },
  "luminance": 0.30751
}

Semantic roles & 50–950 ramp

primary
#AF7EF7
secondary
#E8F5D6
accent
#E50188
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#130F17
muted
#827F85

Preview Lab

Preview with #AF7EF7

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

Preview Lab → · Contrast checker → · Palette generator →

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