#AF8FF2#AF8FF2

#AF8FF2 is a light, vivid violet. Relative luminance 0.352; OKLCH L 71.9% C 0.143 H 297.6°. Best body text is #000000 at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#AF8FF2
RGBrgb(175, 143, 242)
HSLhsl(259, 79%, 75%)
HSVhsv(259, 41%, 95%)
CMYKcmyk(27.7%, 40.9%, 0%, 5.1%)
CIE-LABlab(65.88, 32.46, -45.46)
CIE-LCHlch(65.88, 55.86, 305.53°)
OKLaboklab(71.88% 0.0664 -0.1271)
OKLCHoklch(71.88% 0.143 297.6)
XYZxyz(43.5249, 35.1693, 88.4825)
Luminance0.3517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8FF2 #D2F28F
analogous
#8FA0F2 #AF8FF2 #E08FF2
triadic
#AF8FF2 #F2AF8F #8FF2AF
tetradic
#AF8FF2 #F28FA0 #D2F28F #8FF2E0
square
#AF8FF2 #F28FA0 #D2F28F #8FF2E0
split-complementary
#AF8FF2 #F2E08F #A0F28F
monochromatic
#6121E5 #8858EC #AF8FF2 #D6C6F8 #EBE4FC

Accessibility & contrast

On white

2.61
#AF8FF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.03
#AF8FF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF8FF2
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8FF2#FFFFFF#000000##000000
##AF8FF21.002.618.038.03
#FFFFFF2.611.0021.0021.00
#0000008.0321.001.001.00
##0000008.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#73A0F6
Deuteranopia (green-blind)
#799FEF
Tritanopia (blue-blind)
#A1A0B5
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #af8ff2;
/* rgb */ color: rgb(175, 143, 242);
/* oklch */ color: oklch(71.9% 0.143 297.6);
Tailwind
colors: {
  custom: {
    50: '#c9b0f7',
    500: '#af8ff2',
    950: '#000000',
  },
}
SCSS
$custom: #af8ff2;
$custom-light: #c9b0f7;
$custom-dark: #000000;
JSON
{
  "hex": "#af8ff2",
  "rgb": {
    "r": 175,
    "g": 143,
    "b": 242
  },
  "hsl": {
    "h": 259.394,
    "s": 79.2,
    "l": 75.49
  },
  "oklch": {
    "l": 0.71884,
    "c": 0.14338,
    "h": 297.6
  },
  "luminance": 0.3517
}

Semantic roles & 50–950 ramp

primary
#AF8FF2
secondary
#EAF4D7
accent
#DB0A98
background
#FCFAFF
surface
#F8F4FE
border
#D1CED6
text
#131017
muted
#827F85

Preview Lab

Preview with #AF8FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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