#AF81EA#AF81EA

#AF81EA is a light, vivid violet. Relative luminance 0.308; OKLCH L 69.1% C 0.155 H 302.8°. Best body text is #000000 at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#AF81EA
RGBrgb(175, 129, 234)
HSLhsl(266, 71%, 71%)
HSVhsv(266, 45%, 92%)
CMYKcmyk(25.2%, 44.9%, 0%, 8.2%)
CIE-LABlab(62.30, 38.37, -46.69)
CIE-LCHlch(62.30, 60.43, 309.41°)
OKLaboklab(69.06% 0.0841 -0.1306)
OKLCHoklch(69.06% 0.155 302.8)
XYZxyz(40.3775, 30.7550, 81.6351)
Luminance0.3075 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF81EA #BCEA81
analogous
#8187EA #AF81EA #E481EA
triadic
#AF81EA #EAAF81 #81EAAF
tetradic
#AF81EA #EA8187 #BCEA81 #81EAE4
square
#AF81EA #EA8187 #BCEA81 #81EAE4
split-complementary
#AF81EA #EAE481 #87EA81
monochromatic
#6E22CE #8E4DE1 #AF81EA #D0B5F3 #EEE5FB

Accessibility & contrast

On white

2.94
#AF81EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.15
#AF81EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF81EA
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF81EA#FFFFFF#000000##000000
##AF81EA1.002.947.157.15
#FFFFFF2.941.0021.0021.00
#0000007.1521.001.001.00
##0000007.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6496EE
Deuteranopia (green-blind)
#6F96E7
Tritanopia (blue-blind)
#A593AA
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #af81ea;
/* rgb */ color: rgb(175, 129, 234);
/* oklch */ color: oklch(69.1% 0.155 302.8);
Tailwind
colors: {
  custom: {
    50: '#c9a6f1',
    500: '#af81ea',
    950: '#000000',
  },
}
SCSS
$custom: #af81ea;
$custom-light: #c9a6f1;
$custom-dark: #000000;
JSON
{
  "hex": "#af81ea",
  "rgb": {
    "r": 175,
    "g": 129,
    "b": 234
  },
  "hsl": {
    "h": 266.286,
    "s": 71.429,
    "l": 71.176
  },
  "oklch": {
    "l": 0.69062,
    "c": 0.15533,
    "h": 302.8
  },
  "luminance": 0.30755
}

Semantic roles & 50–950 ramp

primary
#AF81EA
secondary
#E5F1D6
accent
#D3127F
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#130F17
muted
#827F85

Preview Lab

Preview with #AF81EA

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

Preview Lab → · Contrast checker → · Palette generator →

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