#AF4DF2#AF4DF2

#AF4DF2 is a light, highly saturated violet. Relative luminance 0.208; OKLCH L 62.2% C 0.239 H 308.1°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#AF4DF2
RGBrgb(175, 77, 242)
HSLhsl(276, 86%, 63%)
HSVhsv(276, 68%, 95%)
CMYKcmyk(27.7%, 68.2%, 0%, 5.1%)
CIE-LABlab(52.77, 66.55, -66.38)
CIE-LCHlch(52.77, 93.99, 315.07°)
OKLaboklab(62.22% 0.1475 -0.1881)
OKLCHoklch(62.22% 0.239 308.1)
XYZxyz(36.3568, 20.8331, 86.0931)
Luminance0.2083 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4DF2 #90F24D
analogous
#5C4DF2 #AF4DF2 #F24DE3
triadic
#AF4DF2 #F2AF4D #4DF2AF
tetradic
#AF4DF2 #F25C4D #90F24D #4DE3F2
square
#AF4DF2 #F25C4D #90F24D #4DE3F2
split-complementary
#AF4DF2 #E3F24D #4DF25C
monochromatic
#720DB7 #9514EE #AF4DF2 #C986F6 #E2BFFA

Accessibility & contrast

On white

4.06
#AF4DF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#AF4DF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4DF2
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4DF2#FFFFFF#000000##000000
##AF4DF21.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AF7
Deuteranopia (green-blind)
#257FEE
Tritanopia (blue-blind)
#A5719A
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #af4df2;
/* rgb */ color: rgb(175, 77, 242);
/* oklch */ color: oklch(62.2% 0.239 308.1);
Tailwind
colors: {
  custom: {
    50: '#cc86f7',
    500: '#af4df2',
    950: '#000000',
  },
}
SCSS
$custom: #af4df2;
$custom-light: #cc86f7;
$custom-dark: #000000;
JSON
{
  "hex": "#af4df2",
  "rgb": {
    "r": 175,
    "g": 77,
    "b": 242
  },
  "hsl": {
    "h": 275.636,
    "s": 86.387,
    "l": 62.549
  },
  "oklch": {
    "l": 0.62216,
    "c": 0.23901,
    "h": 308.1
  },
  "luminance": 0.20833
}

Semantic roles & 50–950 ramp

primary
#AF4DF2
secondary
#C8EBAF
accent
#E3035E
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C17
muted
#837D85

Preview Lab

Preview with #AF4DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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