#AF74FF#AF74FF

#AF74FF is a light, highly saturated violet. Relative luminance 0.288; OKLCH L 68.2% C 0.201 H 300.8°. Best body text is #000000 at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#AF74FF
RGBrgb(175, 116, 255)
HSLhsl(265, 100%, 73%)
HSVhsv(265, 55%, 100%)
CMYKcmyk(31.4%, 54.5%, 0%, 0%)
CIE-LABlab(60.63, 50.46, -60.95)
CIE-LCHlch(60.63, 79.13, 309.62°)
OKLaboklab(68.18% 0.1027 -0.1722)
OKLCHoklch(68.18% 0.201 300.8)
XYZxyz(41.9703, 28.8245, 97.9409)
Luminance0.2883 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF74FF #C4FF74
analogous
#747EFF #AF74FF #F574FF
triadic
#AF74FF #FFAF74 #74FFAF
tetradic
#AF74FF #FF747E #C4FF74 #74FFF5
square
#AF74FF #FF747E #C4FF74 #74FFF5
split-complementary
#AF74FF #FFF574 #7EFF74
monochromatic
#6A00F9 #8C37FF #AF74FF #D2B1FF #EDE0FF

Accessibility & contrast

On white

3.10
#AF74FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.77
#AF74FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF74FF
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF74FF#FFFFFF#000000##000000
##AF74FF1.003.106.776.77
#FFFFFF3.101.0021.0021.00
#0000006.7721.001.001.00
##0000006.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B92FF
Deuteranopia (green-blind)
#5091FC
Tritanopia (blue-blind)
#9F8FAF
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #af74ff;
/* rgb */ color: rgb(175, 116, 255);
/* oklch */ color: oklch(68.2% 0.201 300.8);
Tailwind
colors: {
  custom: {
    50: '#cb9eff',
    500: '#af74ff',
    950: '#000000',
  },
}
SCSS
$custom: #af74ff;
$custom-light: #cb9eff;
$custom-dark: #000000;
JSON
{
  "hex": "#af74ff",
  "rgb": {
    "r": 175,
    "g": 116,
    "b": 255
  },
  "hsl": {
    "h": 265.468,
    "s": 100,
    "l": 72.745
  },
  "oklch": {
    "l": 0.68177,
    "c": 0.20053,
    "h": 300.8
  },
  "luminance": 0.28825
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF74FF

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

Preview Lab → · Contrast checker → · Palette generator →

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