#AF82F5#AF82F5

#AF82F5 is a light, vivid violet. Relative luminance 0.317; OKLCH L 69.8% C 0.167 H 300.2°. Best body text is #000000 at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#AF82F5
RGBrgb(175, 130, 245)
HSLhsl(263, 85%, 74%)
HSVhsv(263, 47%, 96%)
CMYKcmyk(28.6%, 46.9%, 0%, 3.9%)
CIE-LABlab(63.07, 40.44, -51.55)
CIE-LCHlch(63.07, 65.52, 308.11°)
OKLaboklab(69.82% 0.0842 -0.1448)
OKLCHoklch(69.82% 0.167 300.2)
XYZxyz(42.1394, 31.6716, 90.2617)
Luminance0.3167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF82F5 #C8F582
analogous
#828EF5 #AF82F5 #E882F5
triadic
#AF82F5 #F5AF82 #82F5AF
tetradic
#AF82F5 #F5828E #C8F582 #82F5E8
square
#AF82F5 #F5828E #C8F582 #82F5E8
split-complementary
#AF82F5 #F5E882 #8EF582
monochromatic
#6713EA #8B49F0 #AF82F5 #D3BBFA #EDE3FD

Accessibility & contrast

On white

2.86
#AF82F5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.33
#AF82F5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF82F5
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF82F5#FFFFFF#000000##000000
##AF82F51.002.867.337.33
#FFFFFF2.861.0021.0021.00
#0000007.3321.001.001.00
##0000007.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F98F9
Deuteranopia (green-blind)
#6998F2
Tritanopia (blue-blind)
#A197B0
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #af82f5;
/* rgb */ color: rgb(175, 130, 245);
/* oklch */ color: oklch(69.8% 0.167 300.2);
Tailwind
colors: {
  custom: {
    50: '#c9a7f9',
    500: '#af82f5',
    950: '#000000',
  },
}
SCSS
$custom: #af82f5;
$custom-light: #c9a7f9;
$custom-dark: #000000;
JSON
{
  "hex": "#af82f5",
  "rgb": {
    "r": 175,
    "g": 130,
    "b": 245
  },
  "hsl": {
    "h": 263.478,
    "s": 85.185,
    "l": 73.529
  },
  "oklch": {
    "l": 0.69818,
    "c": 0.16746,
    "h": 300.2
  },
  "luminance": 0.31672
}

Semantic roles & 50–950 ramp

primary
#AF82F5
secondary
#E9F5D6
accent
#E2048B
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#130F17
muted
#827F85

Preview Lab

Preview with #AF82F5

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

Preview Lab → · Contrast checker → · Palette generator →

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