#AF82EF#AF82EF

#AF82EF is a light, vivid violet. Relative luminance 0.313; OKLCH L 69.5% C 0.160 H 301.4°. Best body text is #000000 at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#AF82EF
RGBrgb(175, 130, 239)
HSLhsl(265, 77%, 72%)
HSVhsv(265, 46%, 94%)
CMYKcmyk(26.8%, 45.6%, 0%, 6.3%)
CIE-LABlab(62.77, 39.00, -48.72)
CIE-LCHlch(62.77, 62.40, 308.68°)
OKLaboklab(69.49% 0.0834 -0.1365)
OKLCHoklch(69.49% 0.16 301.4)
XYZxyz(41.2383, 31.3111, 85.5157)
Luminance0.3131 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF82EF #C2EF82
analogous
#828BEF #AF82EF #E682EF
triadic
#AF82EF #EFAF82 #82EFAF
tetradic
#AF82EF #EF828B #C2EF82 #82EFE6
square
#AF82EF #EF828B #C2EF82 #82EFE6
split-complementary
#AF82EF #EFE682 #8BEF82
monochromatic
#6B1CDB #8C4CE8 #AF82EF #D2B8F6 #EEE4FC

Accessibility & contrast

On white

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

On black

7.26
#AF82EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF82EF
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF82EF#FFFFFF#000000##000000
##AF82EF1.002.897.267.26
#FFFFFF2.891.0021.0021.00
#0000007.2621.001.001.00
##0000007.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6297F3
Deuteranopia (green-blind)
#6D97EC
Tritanopia (blue-blind)
#A395AD
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #af82ef;
/* rgb */ color: rgb(175, 130, 239);
/* oklch */ color: oklch(69.5% 0.160 301.4);
Tailwind
colors: {
  custom: {
    50: '#c9a7f5',
    500: '#af82ef',
    950: '#000000',
  },
}
SCSS
$custom: #af82ef;
$custom-light: #c9a7f5;
$custom-dark: #000000;
JSON
{
  "hex": "#af82ef",
  "rgb": {
    "r": 175,
    "g": 130,
    "b": 239
  },
  "hsl": {
    "h": 264.771,
    "s": 77.305,
    "l": 72.353
  },
  "oklch": {
    "l": 0.69494,
    "c": 0.15997,
    "h": 301.4
  },
  "luminance": 0.31311
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF82EF

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

Preview Lab → · Contrast checker → · Palette generator →

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