#AF74F8#AF74F8

#AF74F8 is a light, vivid violet. Relative luminance 0.284; OKLCH L 67.8% C 0.192 H 302.2°. Best body text is #000000 at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#AF74F8
RGBrgb(175, 116, 248)
HSLhsl(267, 90%, 71%)
HSVhsv(267, 53%, 97%)
CMYKcmyk(29.4%, 53.2%, 0%, 2.7%)
CIE-LABlab(60.23, 48.79, -57.72)
CIE-LCHlch(60.23, 75.58, 310.20°)
OKLaboklab(67.76% 0.1024 -0.1628)
OKLCHoklch(67.76% 0.192 302.2)
XYZxyz(40.8640, 28.3820, 92.1142)
Luminance0.2838 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF74F8 #BDF874
analogous
#747BF8 #AF74F8 #F174F8
triadic
#AF74F8 #F8AF74 #74F8AF
tetradic
#AF74F8 #F8747B #BDF874 #74F8F1
square
#AF74F8 #F8747B #BDF874 #74F8F1
split-complementary
#AF74F8 #F8F174 #7BF874
monochromatic
#6D0CE6 #8D3AF5 #AF74F8 #D1AEFB #EEE2FE

Accessibility & contrast

On white

3.15
#AF74F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.68
#AF74F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF74F8
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF74F8#FFFFFF#000000##000000
##AF74F81.003.156.686.68
#FFFFFF3.151.0021.0021.00
#0000006.6821.001.001.00
##0000006.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4390FC
Deuteranopia (green-blind)
#5691F5
Tritanopia (blue-blind)
#A18DAB
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #af74f8;
/* rgb */ color: rgb(175, 116, 248);
/* oklch */ color: oklch(67.8% 0.192 302.2);
Tailwind
colors: {
  custom: {
    50: '#ca9efb',
    500: '#af74f8',
    950: '#000000',
  },
}
SCSS
$custom: #af74f8;
$custom-light: #ca9efb;
$custom-dark: #000000;
JSON
{
  "hex": "#af74f8",
  "rgb": {
    "r": 175,
    "g": 116,
    "b": 248
  },
  "hsl": {
    "h": 266.818,
    "s": 90.411,
    "l": 71.373
  },
  "oklch": {
    "l": 0.67759,
    "c": 0.19233,
    "h": 302.2
  },
  "luminance": 0.28382
}

Semantic roles & 50–950 ramp

primary
#AF74F8
secondary
#E6F5D3
accent
#E6007F
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF74F8

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

Preview Lab → · Contrast checker → · Palette generator →

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