#AF81E8#AF81E8

#AF81E8 is a light, vivid violet. Relative luminance 0.306; OKLCH L 69.0% C 0.153 H 303.2°. Best body text is #000000 at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#AF81E8
RGBrgb(175, 129, 232)
HSLhsl(267, 69%, 71%)
HSVhsv(267, 44%, 91%)
CMYKcmyk(24.6%, 44.4%, 0%, 9%)
CIE-LABlab(62.20, 37.90, -45.74)
CIE-LCHlch(62.20, 59.40, 309.65°)
OKLaboklab(68.96% 0.0838 -0.1278)
OKLCHoklch(68.96% 0.153 303.2)
XYZxyz(40.0918, 30.6407, 80.1304)
Luminance0.3064 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF81E8 #BAE881
analogous
#8186E8 #AF81E8 #E281E8
triadic
#AF81E8 #E8AF81 #81E8AF
tetradic
#AF81E8 #E88186 #BAE881 #81E8E2
square
#AF81E8 #E88186 #BAE881 #81E8E2
split-complementary
#AF81E8 #E8E281 #86E881
monochromatic
#6E25CA #8E4DDF #AF81E8 #D0B5F1 #EFE5FA

Accessibility & contrast

On white

2.95
#AF81E8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.13
#AF81E8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF81E8
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF81E8#FFFFFF#000000##000000
##AF81E81.002.957.137.13
#FFFFFF2.951.0021.0021.00
#0000007.1321.001.001.00
##0000007.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6595EC
Deuteranopia (green-blind)
#7096E5
Tritanopia (blue-blind)
#A593A9
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #af81e8;
/* rgb */ color: rgb(175, 129, 232);
/* oklch */ color: oklch(69.0% 0.153 303.2);
Tailwind
colors: {
  custom: {
    50: '#c9a6f0',
    500: '#af81e8',
    950: '#000000',
  },
}
SCSS
$custom: #af81e8;
$custom-light: #c9a6f0;
$custom-dark: #000000;
JSON
{
  "hex": "#af81e8",
  "rgb": {
    "r": 175,
    "g": 129,
    "b": 232
  },
  "hsl": {
    "h": 266.796,
    "s": 69.128,
    "l": 70.784
  },
  "oklch": {
    "l": 0.68958,
    "c": 0.15284,
    "h": 303.2
  },
  "luminance": 0.30641
}

Semantic roles & 50–950 ramp

primary
#AF81E8
secondary
#E4F0D5
accent
#D1147D
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#130F16
muted
#827F84

Preview Lab

Preview with #AF81E8

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

Preview Lab → · Contrast checker → · Palette generator →

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