#AF79FC#AF79FC

#AF79FC is a light, vivid violet. Relative luminance 0.298; OKLCH L 68.8% C 0.190 H 300.5°. Best body text is #000000 at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#AF79FC
RGBrgb(175, 121, 252)
HSLhsl(265, 96%, 73%)
HSVhsv(265, 52%, 99%)
CMYKcmyk(30.6%, 52%, 0%, 1.2%)
CIE-LABlab(61.50, 47.06, -57.91)
CIE-LCHlch(61.50, 74.62, 309.10°)
OKLaboklab(68.77% 0.0963 -0.1633)
OKLCHoklch(68.77% 0.19 300.5)
XYZxyz(42.0831, 29.8168, 95.6147)
Luminance0.2982 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF79FC #C6FC79
analogous
#7984FC #AF79FC #F079FC
triadic
#AF79FC #FCAF79 #79FCAF
tetradic
#AF79FC #FC7984 #C6FC79 #79FCF0
square
#AF79FC #FC7984 #C6FC79 #79FCF0
split-complementary
#AF79FC #FCF079 #84FC79
monochromatic
#6805F5 #8B3DFB #AF79FC #D3B5FD #EDE1FE

Accessibility & contrast

On white

3.02
#AF79FC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.96
#AF79FC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF79FC
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF79FC#FFFFFF#000000##000000
##AF79FC1.003.026.966.96
#FFFFFF3.021.0021.0021.00
#0000006.9621.001.001.00
##0000006.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4994FF
Deuteranopia (green-blind)
#5994F9
Tritanopia (blue-blind)
#A092AF
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #af79fc;
/* rgb */ color: rgb(175, 121, 252);
/* oklch */ color: oklch(68.8% 0.190 300.5);
Tailwind
colors: {
  custom: {
    50: '#caa1fe',
    500: '#af79fc',
    950: '#000000',
  },
}
SCSS
$custom: #af79fc;
$custom-light: #caa1fe;
$custom-dark: #000000;
JSON
{
  "hex": "#af79fc",
  "rgb": {
    "r": 175,
    "g": 121,
    "b": 252
  },
  "hsl": {
    "h": 264.733,
    "s": 95.62,
    "l": 73.137
  },
  "oklch": {
    "l": 0.68765,
    "c": 0.18964,
    "h": 300.5
  },
  "luminance": 0.29817
}

Semantic roles & 50–950 ramp

primary
#AF79FC
secondary
#E8F7D4
accent
#E60087
background
#FCFAFF
surface
#F9F3FF
border
#D2CDD7
text
#140F18
muted
#827F86

Preview Lab

Preview with #AF79FC

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

Preview Lab → · Contrast checker → · Palette generator →

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