#AF74FA#AF74FA

#AF74FA is a light, vivid violet. Relative luminance 0.285; OKLCH L 67.9% C 0.195 H 301.8°. Best body text is #000000 at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#AF74FA
RGBrgb(175, 116, 250)
HSLhsl(266, 93%, 72%)
HSVhsv(266, 54%, 98%)
CMYKcmyk(30%, 53.6%, 0%, 2%)
CIE-LABlab(60.34, 49.26, -58.65)
CIE-LCHlch(60.34, 76.59, 310.03°)
OKLaboklab(67.88% 0.1025 -0.1655)
OKLCHoklch(67.88% 0.195 301.8)
XYZxyz(41.1759, 28.5068, 93.7570)
Luminance0.2851 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF74FA #BFFA74
analogous
#747CFA #AF74FA #F274FA
triadic
#AF74FA #FAAF74 #74FAAF
tetradic
#AF74FA #FA747C #BFFA74 #74FAF2
square
#AF74FA #FA747C #BFFA74 #74FAF2
split-complementary
#AF74FA #FAF274 #7CFA74
monochromatic
#6C08EB #8D39F8 #AF74FA #D1AFFC #EEE1FE

Accessibility & contrast

On white

3.13
#AF74FA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.70
#AF74FA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF74FA
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF74FA#FFFFFF#000000##000000
##AF74FA1.003.136.706.70
#FFFFFF3.131.0021.0021.00
#0000006.7021.001.001.00
##0000006.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4191FF
Deuteranopia (green-blind)
#5591F7
Tritanopia (blue-blind)
#A08EAC
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #af74fa;
/* rgb */ color: rgb(175, 116, 250);
/* oklch */ color: oklch(67.9% 0.195 301.8);
Tailwind
colors: {
  custom: {
    50: '#ca9efd',
    500: '#af74fa',
    950: '#000000',
  },
}
SCSS
$custom: #af74fa;
$custom-light: #ca9efd;
$custom-dark: #000000;
JSON
{
  "hex": "#af74fa",
  "rgb": {
    "r": 175,
    "g": 116,
    "b": 250
  },
  "hsl": {
    "h": 266.418,
    "s": 93.056,
    "l": 71.765
  },
  "oklch": {
    "l": 0.67878,
    "c": 0.19467,
    "h": 301.8
  },
  "luminance": 0.28507
}

Semantic roles & 50–950 ramp

primary
#AF74FA
secondary
#E7F6D4
accent
#E60080
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E18
muted
#827E86

Preview Lab

Preview with #AF74FA

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

Preview Lab → · Contrast checker → · Palette generator →

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