#AF80F8#AF80F8

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

Color values

HEX#AF80F8
RGBrgb(175, 128, 248)
HSLhsl(264, 90%, 74%)
HSVhsv(264, 48%, 97%)
CMYKcmyk(29.4%, 48.4%, 0%, 2.7%)
CIE-LABlab(62.78, 42.27, -53.66)
CIE-LCHlch(62.78, 68.30, 308.23°)
OKLaboklab(69.65% 0.0871 -0.1509)
OKLCHoklch(69.65% 0.174 300)
XYZxyz(42.3377, 31.3294, 92.6054)
Luminance0.3133 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF80F8 #C9F880
analogous
#808DF8 #AF80F8 #EB80F8
triadic
#AF80F8 #F8AF80 #80F8AF
tetradic
#AF80F8 #F8808D #C9F880 #80F8EB
square
#AF80F8 #F8808D #C9F880 #80F8EB
split-complementary
#AF80F8 #F8EB80 #8DF880
monochromatic
#660DF0 #8A46F5 #AF80F8 #D4BAFB #EDE2FD

Accessibility & contrast

On white

2.89
#AF80F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.27
#AF80F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF80F8
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF80F8#FFFFFF#000000##000000
##AF80F81.002.897.277.27
#FFFFFF2.891.0021.0021.00
#0000007.2721.001.001.00
##0000007.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5998FC
Deuteranopia (green-blind)
#6597F5
Tritanopia (blue-blind)
#A096B0
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #af80f8;
/* rgb */ color: rgb(175, 128, 248);
/* oklch */ color: oklch(69.7% 0.174 300.0);
Tailwind
colors: {
  custom: {
    50: '#caa6fb',
    500: '#af80f8',
    950: '#000000',
  },
}
SCSS
$custom: #af80f8;
$custom-light: #caa6fb;
$custom-dark: #000000;
JSON
{
  "hex": "#af80f8",
  "rgb": {
    "r": 175,
    "g": 128,
    "b": 248
  },
  "hsl": {
    "h": 263.5,
    "s": 89.552,
    "l": 73.725
  },
  "oklch": {
    "l": 0.69654,
    "c": 0.17424,
    "h": 300
  },
  "luminance": 0.3133
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF80F8

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

Preview Lab → · Contrast checker → · Palette generator →

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