#AF80F2#AF80F2

#AF80F2 is a light, vivid violet. Relative luminance 0.310; OKLCH L 69.3% C 0.167 H 301.2°. Best body text is #000000 at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#AF80F2
RGBrgb(175, 128, 242)
HSLhsl(265, 81%, 73%)
HSVhsv(265, 47%, 95%)
CMYKcmyk(27.7%, 47.1%, 0%, 5.1%)
CIE-LABlab(62.48, 40.82, -50.84)
CIE-LCHlch(62.48, 65.20, 308.76°)
OKLaboklab(69.32% 0.0864 -0.1427)
OKLCHoklch(69.32% 0.167 301.2)
XYZxyz(41.4217, 30.9630, 87.7814)
Luminance0.3096 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF80F2 #C3F280
analogous
#808AF2 #AF80F2 #E880F2
triadic
#AF80F2 #F2AF80 #80F2AF
tetradic
#AF80F2 #F2808A #C3F280 #80F2E8
square
#AF80F2 #F2808A #C3F280 #80F2E8
split-complementary
#AF80F2 #F2E880 #8AF280
monochromatic
#6A17E1 #8C48EC #AF80F2 #D2B8F8 #EEE3FC

Accessibility & contrast

On white

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

On black

7.19
#AF80F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF80F2
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF80F2#FFFFFF#000000##000000
##AF80F21.002.927.197.19
#FFFFFF2.921.0021.0021.00
#0000007.1921.001.001.00
##0000007.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D96F6
Deuteranopia (green-blind)
#6997EF
Tritanopia (blue-blind)
#A295AE
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #af80f2;
/* rgb */ color: rgb(175, 128, 242);
/* oklch */ color: oklch(69.3% 0.167 301.2);
Tailwind
colors: {
  custom: {
    50: '#c9a6f7',
    500: '#af80f2',
    950: '#000000',
  },
}
SCSS
$custom: #af80f2;
$custom-light: #c9a6f7;
$custom-dark: #000000;
JSON
{
  "hex": "#af80f2",
  "rgb": {
    "r": 175,
    "g": 128,
    "b": 242
  },
  "hsl": {
    "h": 264.737,
    "s": 81.429,
    "l": 72.549
  },
  "oklch": {
    "l": 0.69324,
    "c": 0.16683,
    "h": 301.2
  },
  "luminance": 0.30963
}

Semantic roles & 50–950 ramp

primary
#AF80F2
secondary
#E8F4D7
accent
#DE0886
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#130F17
muted
#827F85

Preview Lab

Preview with #AF80F2

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

Preview Lab → · Contrast checker → · Palette generator →

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