#AF79FD#AF79FD

#AF79FD is a light, vivid violet. Relative luminance 0.299; OKLCH L 68.8% C 0.191 H 300.3°. Best body text is #000000 at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#AF79FD
RGBrgb(175, 121, 253)
HSLhsl(265, 97%, 73%)
HSVhsv(265, 52%, 99%)
CMYKcmyk(30.8%, 52.2%, 0%, 0.8%)
CIE-LABlab(61.55, 47.30, -58.37)
CIE-LCHlch(61.55, 75.13, 309.02°)
OKLaboklab(68.82% 0.0964 -0.1647)
OKLCHoklch(68.82% 0.191 300.3)
XYZxyz(42.2420, 29.8803, 96.4515)
Luminance0.2988 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF79FD #C7FD79
analogous
#7985FD #AF79FD #F179FD
triadic
#AF79FD #FDAF79 #79FDAF
tetradic
#AF79FD #FD7985 #C7FD79 #79FDF1
square
#AF79FD #FD7985 #C7FD79 #79FDF1
split-complementary
#AF79FD #FDF179 #85FD79
monochromatic
#6804F8 #8B3DFC #AF79FD #D3B5FE #EDE1FF

Accessibility & contrast

On white

3.01
#AF79FD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.98
#AF79FD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF79FD
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF79FD#FFFFFF#000000##000000
##AF79FD1.003.016.986.98
#FFFFFF3.011.0021.0021.00
#0000006.9821.001.001.00
##0000006.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4894FF
Deuteranopia (green-blind)
#5894FA
Tritanopia (blue-blind)
#9F92B0
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #af79fd;
/* rgb */ color: rgb(175, 121, 253);
/* oklch */ color: oklch(68.8% 0.191 300.3);
Tailwind
colors: {
  custom: {
    50: '#caa1ff',
    500: '#af79fd',
    950: '#000000',
  },
}
SCSS
$custom: #af79fd;
$custom-light: #caa1ff;
$custom-dark: #000000;
JSON
{
  "hex": "#af79fd",
  "rgb": {
    "r": 175,
    "g": 121,
    "b": 253
  },
  "hsl": {
    "h": 264.545,
    "s": 97.059,
    "l": 73.333
  },
  "oklch": {
    "l": 0.68824,
    "c": 0.19085,
    "h": 300.3
  },
  "luminance": 0.29881
}

Semantic roles & 50–950 ramp

primary
#AF79FD
secondary
#E9F7D4
accent
#E60088
background
#FCFAFF
surface
#F9F3FF
border
#D2CDD7
text
#140F18
muted
#827F86

Preview Lab

Preview with #AF79FD

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

Preview Lab → · Contrast checker → · Palette generator →

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