#AF74FB#AF74FB

#AF74FB is a light, vivid violet. Relative luminance 0.286; OKLCH L 67.9% C 0.196 H 301.6°. Best body text is #000000 at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#AF74FB
RGBrgb(175, 116, 251)
HSLhsl(266, 94%, 72%)
HSVhsv(266, 54%, 98%)
CMYKcmyk(30.3%, 53.8%, 0%, 1.6%)
CIE-LABlab(60.40, 49.50, -59.11)
CIE-LCHlch(60.40, 77.10, 309.95°)
OKLaboklab(67.94% 0.1025 -0.1669)
OKLCHoklch(67.94% 0.196 301.6)
XYZxyz(41.3331, 28.5697, 94.5850)
Luminance0.2857 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF74FB #C0FB74
analogous
#747DFB #AF74FB #F274FB
triadic
#AF74FB #FBAF74 #74FBAF
tetradic
#AF74FB #FB747D #C0FB74 #74FBF2
square
#AF74FB #FB747D #C0FB74 #74FBF2
split-complementary
#AF74FB #FBF274 #7DFB74
monochromatic
#6C07EE #8D39F9 #AF74FB #D1AFFD #EEE1FE

Accessibility & contrast

On white

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

On black

6.71
#AF74FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF74FB
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF74FB#FFFFFF#000000##000000
##AF74FB1.003.136.716.71
#FFFFFF3.131.0021.0021.00
#0000006.7121.001.001.00
##0000006.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4091FF
Deuteranopia (green-blind)
#5491F8
Tritanopia (blue-blind)
#A08EAD
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #af74fb;
/* rgb */ color: rgb(175, 116, 251);
/* oklch */ color: oklch(67.9% 0.196 301.6);
Tailwind
colors: {
  custom: {
    50: '#ca9efd',
    500: '#af74fb',
    950: '#000000',
  },
}
SCSS
$custom: #af74fb;
$custom-light: #ca9efd;
$custom-dark: #000000;
JSON
{
  "hex": "#af74fb",
  "rgb": {
    "r": 175,
    "g": 116,
    "b": 251
  },
  "hsl": {
    "h": 266.222,
    "s": 94.406,
    "l": 71.961
  },
  "oklch": {
    "l": 0.67937,
    "c": 0.19584,
    "h": 301.6
  },
  "luminance": 0.2857
}

Semantic roles & 50–950 ramp

primary
#AF74FB
secondary
#E8F6D4
accent
#E60081
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E18
muted
#827E86

Preview Lab

Preview with #AF74FB

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

Preview Lab → · Contrast checker → · Palette generator →

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