#AF7FF7#AF7FF7

#AF7FF7 is a light, vivid violet. Relative luminance 0.310; OKLCH L 69.4% C 0.175 H 300.4°. Best body text is #000000 at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#AF7FF7
RGBrgb(175, 127, 247)
HSLhsl(264, 88%, 73%)
HSVhsv(264, 49%, 97%)
CMYKcmyk(29.1%, 48.6%, 0%, 3.1%)
CIE-LABlab(62.51, 42.58, -53.53)
CIE-LCHlch(62.51, 68.40, 308.49°)
OKLaboklab(69.44% 0.0883 -0.1506)
OKLCHoklch(69.44% 0.175 300.4)
XYZxyz(42.0532, 31.0079, 91.7473)
Luminance0.3101 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7FF7 #C7F77F
analogous
#7F8BF7 #AF7FF7 #EB7FF7
triadic
#AF7FF7 #F7AF7F #7FF7AF
tetradic
#AF7FF7 #F77F8B #C7F77F #7FF7EB
square
#AF7FF7 #F77F8B #C7F77F #7FF7EB
split-complementary
#AF7FF7 #F7EB7F #8BF77F
monochromatic
#680FED #8B45F3 #AF7FF7 #D3B9FB #EDE2FD

Accessibility & contrast

On white

2.92
#AF7FF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.20
#AF7FF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF7FF7
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7FF7#FFFFFF#000000##000000
##AF7FF71.002.927.207.20
#FFFFFF2.921.0021.0021.00
#0000007.2021.001.001.00
##0000007.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5897FB
Deuteranopia (green-blind)
#6496F4
Tritanopia (blue-blind)
#A195B0
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #af7ff7;
/* rgb */ color: rgb(175, 127, 247);
/* oklch */ color: oklch(69.4% 0.175 300.4);
Tailwind
colors: {
  custom: {
    50: '#caa5fa',
    500: '#af7ff7',
    950: '#000000',
  },
}
SCSS
$custom: #af7ff7;
$custom-light: #caa5fa;
$custom-dark: #000000;
JSON
{
  "hex": "#af7ff7",
  "rgb": {
    "r": 175,
    "g": 127,
    "b": 247
  },
  "hsl": {
    "h": 264,
    "s": 88.235,
    "l": 73.333
  },
  "oklch": {
    "l": 0.69436,
    "c": 0.17454,
    "h": 300.4
  },
  "luminance": 0.31008
}

Semantic roles & 50–950 ramp

primary
#AF7FF7
secondary
#E9F5D6
accent
#E5018A
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#130F17
muted
#827F85

Preview Lab

Preview with #AF7FF7

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

Preview Lab → · Contrast checker → · Palette generator →

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