#AF82EA#AF82EA

#AF82EA is a light, vivid violet. Relative luminance 0.310; OKLCH L 69.2% C 0.154 H 302.5°. Best body text is #000000 at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#AF82EA
RGBrgb(175, 130, 234)
HSLhsl(266, 71%, 71%)
HSVhsv(266, 44%, 92%)
CMYKcmyk(25.2%, 44.4%, 0%, 8.2%)
CIE-LABlab(62.52, 37.81, -46.34)
CIE-LCHlch(62.52, 59.81, 309.22°)
OKLaboklab(69.23% 0.0827 -0.1296)
OKLCHoklch(69.23% 0.154 302.5)
XYZxyz(40.5099, 31.0197, 81.6792)
Luminance0.3102 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF82EA #BDEA82
analogous
#8289EA #AF82EA #E382EA
triadic
#AF82EA #EAAF82 #82EAAF
tetradic
#AF82EA #EA8289 #BDEA82 #82EAE3
square
#AF82EA #EA8289 #BDEA82 #82EAE3
split-complementary
#AF82EA #EAE382 #89EA82
monochromatic
#6D23CF #8D4EE1 #AF82EA #D1B6F3 #EEE5FB

Accessibility & contrast

On white

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

On black

7.20
#AF82EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF82EA
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF82EA#FFFFFF#000000##000000
##AF82EA1.002.927.207.20
#FFFFFF2.921.0021.0021.00
#0000007.2021.001.001.00
##0000007.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6696EE
Deuteranopia (green-blind)
#7097E7
Tritanopia (blue-blind)
#A594AB
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #af82ea;
/* rgb */ color: rgb(175, 130, 234);
/* oklch */ color: oklch(69.2% 0.154 302.5);
Tailwind
colors: {
  custom: {
    50: '#c9a7f1',
    500: '#af82ea',
    950: '#000000',
  },
}
SCSS
$custom: #af82ea;
$custom-light: #c9a7f1;
$custom-dark: #000000;
JSON
{
  "hex": "#af82ea",
  "rgb": {
    "r": 175,
    "g": 130,
    "b": 234
  },
  "hsl": {
    "h": 265.962,
    "s": 71.233,
    "l": 71.373
  },
  "oklch": {
    "l": 0.6923,
    "c": 0.15374,
    "h": 302.5
  },
  "luminance": 0.3102
}

Semantic roles & 50–950 ramp

primary
#AF82EA
secondary
#E6F1D6
accent
#D31280
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#130F17
muted
#827F85

Preview Lab

Preview with #AF82EA

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

Preview Lab → · Contrast checker → · Palette generator →

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