#AF7EF8#AF7EF8

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

Color values

HEX#AF7EF8
RGBrgb(175, 126, 248)
HSLhsl(264, 90%, 73%)
HSVhsv(264, 49%, 97%)
CMYKcmyk(29.4%, 49.2%, 0%, 2.7%)
CIE-LABlab(62.35, 43.37, -54.35)
CIE-LCHlch(62.35, 69.53, 308.59°)
OKLaboklab(69.33% 0.0897 -0.1529)
OKLCHoklch(69.33% 0.177 300.4)
XYZxyz(42.0794, 30.8128, 92.5193)
Luminance0.3081 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7EF8 #C7F87E
analogous
#7E8AF8 #AF7EF8 #EC7EF8
triadic
#AF7EF8 #F8AF7E #7EF8AF
tetradic
#AF7EF8 #F87E8A #C7F87E #7EF8EC
square
#AF7EF8 #F87E8A #C7F87E #7EF8EC
split-complementary
#AF7EF8 #F8EC7E #8AF87E
monochromatic
#680DEF #8B44F5 #AF7EF8 #D3B8FB #EDE2FD

Accessibility & contrast

On white

2.93
#AF7EF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.16
#AF7EF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF7EF8
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7EF8#FFFFFF#000000##000000
##AF7EF81.002.937.167.16
#FFFFFF2.931.0021.0021.00
#0000007.1621.001.001.00
##0000007.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5696FC
Deuteranopia (green-blind)
#6296F5
Tritanopia (blue-blind)
#A195B0
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #af7ef8;
/* rgb */ color: rgb(175, 126, 248);
/* oklch */ color: oklch(69.3% 0.177 300.4);
Tailwind
colors: {
  custom: {
    50: '#caa4fb',
    500: '#af7ef8',
    950: '#000000',
  },
}
SCSS
$custom: #af7ef8;
$custom-light: #caa4fb;
$custom-dark: #000000;
JSON
{
  "hex": "#af7ef8",
  "rgb": {
    "r": 175,
    "g": 126,
    "b": 248
  },
  "hsl": {
    "h": 264.098,
    "s": 89.706,
    "l": 73.333
  },
  "oklch": {
    "l": 0.6933,
    "c": 0.17729,
    "h": 300.4
  },
  "luminance": 0.30813
}

Semantic roles & 50–950 ramp

primary
#AF7EF8
secondary
#E9F6D5
accent
#E60089
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#130F17
muted
#827F85

Preview Lab

Preview with #AF7EF8

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

Preview Lab → · Contrast checker → · Palette generator →

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