#AF82E7#AF82E7

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

Color values

HEX#AF82E7
RGBrgb(175, 130, 231)
HSLhsl(267, 68%, 71%)
HSVhsv(267, 44%, 91%)
CMYKcmyk(24.2%, 43.7%, 0%, 9.4%)
CIE-LABlab(62.38, 37.11, -44.90)
CIE-LCHlch(62.38, 58.25, 309.57°)
OKLaboklab(69.08% 0.0822 -0.1254)
OKLCHoklch(69.08% 0.15 303.3)
XYZxyz(40.0825, 30.8488, 79.4286)
Luminance0.3085 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF82E7 #BAE782
analogous
#8287E7 #AF82E7 #E282E7
triadic
#AF82E7 #E7AF82 #82E7AF
tetradic
#AF82E7 #E78287 #BAE782 #82E7E2
square
#AF82E7 #E78287 #BAE782 #82E7E2
split-complementary
#AF82E7 #E7E282 #87E782
monochromatic
#6E26C8 #8E4FDD #AF82E7 #D0B5F1 #EFE5FA

Accessibility & contrast

On white

2.93
#AF82E7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.17
#AF82E7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF82E7
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF82E7#FFFFFF#000000##000000
##AF82E71.002.937.177.17
#FFFFFF2.931.0021.0021.00
#0000007.1721.001.001.00
##0000007.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6796EB
Deuteranopia (green-blind)
#7297E4
Tritanopia (blue-blind)
#A593A9
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #af82e7;
/* rgb */ color: rgb(175, 130, 231);
/* oklch */ color: oklch(69.1% 0.150 303.3);
Tailwind
colors: {
  custom: {
    50: '#c9a7ef',
    500: '#af82e7',
    950: '#000000',
  },
}
SCSS
$custom: #af82e7;
$custom-light: #c9a7ef;
$custom-dark: #000000;
JSON
{
  "hex": "#af82e7",
  "rgb": {
    "r": 175,
    "g": 130,
    "b": 231
  },
  "hsl": {
    "h": 266.733,
    "s": 67.785,
    "l": 70.784
  },
  "oklch": {
    "l": 0.69075,
    "c": 0.14999,
    "h": 303.3
  },
  "luminance": 0.30849
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF82E7

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

Preview Lab → · Contrast checker → · Palette generator →

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