#AF74FD#AF74FD

#AF74FD is a light, vivid violet. Relative luminance 0.287; OKLCH L 68.1% C 0.198 H 301.2°. Best body text is #000000 at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#AF74FD
RGBrgb(175, 116, 253)
HSLhsl(266, 97%, 72%)
HSVhsv(266, 54%, 99%)
CMYKcmyk(30.8%, 54.2%, 0%, 0.8%)
CIE-LABlab(60.51, 49.98, -60.03)
CIE-LCHlch(60.51, 78.11, 309.78°)
OKLaboklab(68.06% 0.1026 -0.1696)
OKLCHoklch(68.06% 0.198 301.2)
XYZxyz(41.6501, 28.6964, 96.2542)
Luminance0.2870 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF74FD #C2FD74
analogous
#747EFD #AF74FD #F374FD
triadic
#AF74FD #FDAF74 #74FDAF
tetradic
#AF74FD #FD747E #C2FD74 #74FDF3
square
#AF74FD #FD747E #C2FD74 #74FDF3
split-complementary
#AF74FD #FDF374 #7EFD74
monochromatic
#6B03F3 #8C38FC #AF74FD #D2B0FE #EEE1FF

Accessibility & contrast

On white

3.12
#AF74FD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.74
#AF74FD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF74FD
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF74FD#FFFFFF#000000##000000
##AF74FD1.003.126.746.74
#FFFFFF3.121.0021.0021.00
#0000006.7421.001.001.00
##0000006.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E91FF
Deuteranopia (green-blind)
#5291FA
Tritanopia (blue-blind)
#A08FAE
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #af74fd;
/* rgb */ color: rgb(175, 116, 253);
/* oklch */ color: oklch(68.1% 0.198 301.2);
Tailwind
colors: {
  custom: {
    50: '#cb9eff',
    500: '#af74fd',
    950: '#000000',
  },
}
SCSS
$custom: #af74fd;
$custom-light: #cb9eff;
$custom-dark: #000000;
JSON
{
  "hex": "#af74fd",
  "rgb": {
    "r": 175,
    "g": 116,
    "b": 253
  },
  "hsl": {
    "h": 265.839,
    "s": 97.163,
    "l": 72.353
  },
  "oklch": {
    "l": 0.68057,
    "c": 0.19819,
    "h": 301.2
  },
  "luminance": 0.28697
}

Semantic roles & 50–950 ramp

primary
#AF74FD
secondary
#E8F7D4
accent
#E60083
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E18
muted
#827E86

Preview Lab

Preview with #AF74FD

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

Preview Lab → · Contrast checker → · Palette generator →

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