#AF81EF#AF81EF

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

Color values

HEX#AF81EF
RGBrgb(175, 129, 239)
HSLhsl(265, 77%, 72%)
HSVhsv(265, 46%, 94%)
CMYKcmyk(26.8%, 46%, 0%, 6.3%)
CIE-LABlab(62.55, 39.55, -49.07)
CIE-LCHlch(62.55, 63.03, 308.87°)
OKLaboklab(69.33% 0.0847 -0.1375)
OKLCHoklch(69.33% 0.162 301.6)
XYZxyz(41.1059, 31.0464, 85.4716)
Luminance0.3105 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF81EF #C1EF81
analogous
#818AEF #AF81EF #E681EF
triadic
#AF81EF #EFAF81 #81EFAF
tetradic
#AF81EF #EF818A #C1EF81 #81EFE6
square
#AF81EF #EF818A #C1EF81 #81EFE6
split-complementary
#AF81EF #EFE681 #8AEF81
monochromatic
#6B1CDA #8D4BE8 #AF81EF #D1B7F6 #EEE4FC

Accessibility & contrast

On white

2.91
#AF81EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.21
#AF81EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF81EF
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF81EF#FFFFFF#000000##000000
##AF81EF1.002.917.217.21
#FFFFFF2.911.0021.0021.00
#0000007.2121.001.001.00
##0000007.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6197F3
Deuteranopia (green-blind)
#6C97EC
Tritanopia (blue-blind)
#A394AD
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #af81ef;
/* rgb */ color: rgb(175, 129, 239);
/* oklch */ color: oklch(69.3% 0.162 301.6);
Tailwind
colors: {
  custom: {
    50: '#c9a6f5',
    500: '#af81ef',
    950: '#000000',
  },
}
SCSS
$custom: #af81ef;
$custom-light: #c9a6f5;
$custom-dark: #000000;
JSON
{
  "hex": "#af81ef",
  "rgb": {
    "r": 175,
    "g": 129,
    "b": 239
  },
  "hsl": {
    "h": 265.091,
    "s": 77.465,
    "l": 72.157
  },
  "oklch": {
    "l": 0.69327,
    "c": 0.16155,
    "h": 301.6
  },
  "luminance": 0.31046
}

Semantic roles & 50–950 ramp

primary
#AF81EF
secondary
#E8F3D8
accent
#DA0C84
background
#FCFAFF
surface
#F9F4FE
border
#D2CED6
text
#130F17
muted
#827F85

Preview Lab

Preview with #AF81EF

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

Preview Lab → · Contrast checker → · Palette generator →

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