#AF7EFF#AF7EFF

#AF7EFF is a light, vivid violet. Relative luminance 0.313; OKLCH L 69.7% C 0.186 H 299.1°. Best body text is #000000 at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#AF7EFF
RGBrgb(175, 126, 255)
HSLhsl(263, 100%, 75%)
HSVhsv(263, 51%, 100%)
CMYKcmyk(31.4%, 50.6%, 0%, 0%)
CIE-LABlab(62.72, 45.07, -57.60)
CIE-LCHlch(62.72, 73.14, 308.04°)
OKLaboklab(69.73% 0.0903 -0.1625)
OKLCHoklch(69.73% 0.186 299.1)
XYZxyz(43.1857, 31.2553, 98.3460)
Luminance0.3126 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7EFF #CEFF7E
analogous
#7E8DFF #AF7EFF #F07EFF
triadic
#AF7EFF #FFAF7E #7EFFAF
tetradic
#AF7EFF #FF7E8D #CEFF7E #7EFFF0
square
#AF7EFF #FF7E8D #CEFF7E #7EFFF0
split-complementary
#AF7EFF #FFF07E #8DFF7E
monochromatic
#6304FF #8941FF #AF7EFF #D5BBFF #ECE0FF

Accessibility & contrast

On white

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

On black

7.25
#AF7EFF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF7EFF
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7EFF#FFFFFF#000000##000000
##AF7EFF1.002.907.257.25
#FFFFFF2.901.0021.0021.00
#0000007.2521.001.001.00
##0000007.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5098FF
Deuteranopia (green-blind)
#5D97FC
Tritanopia (blue-blind)
#9E97B3
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #af7eff;
/* rgb */ color: rgb(175, 126, 255);
/* oklch */ color: oklch(69.7% 0.186 299.1);
Tailwind
colors: {
  custom: {
    50: '#caa4ff',
    500: '#af7eff',
    950: '#000000',
  },
}
SCSS
$custom: #af7eff;
$custom-light: #caa4ff;
$custom-dark: #000000;
JSON
{
  "hex": "#af7eff",
  "rgb": {
    "r": 175,
    "g": 126,
    "b": 255
  },
  "hsl": {
    "h": 262.791,
    "s": 100,
    "l": 74.706
  },
  "oklch": {
    "l": 0.69728,
    "c": 0.18584,
    "h": 299.1
  },
  "luminance": 0.31256
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF7EFF

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

Preview Lab → · Contrast checker → · Palette generator →

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