#AF73F8#AF73F8

#AF73F8 is a light, vivid violet. Relative luminance 0.282; OKLCH L 67.6% C 0.194 H 302.3°. Best body text is #000000 at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#AF73F8
RGBrgb(175, 115, 248)
HSLhsl(267, 90%, 71%)
HSVhsv(267, 54%, 97%)
CMYKcmyk(29.4%, 53.6%, 0%, 2.7%)
CIE-LABlab(60.03, 49.32, -58.05)
CIE-LCHlch(60.03, 76.17, 310.35°)
OKLaboklab(67.61% 0.1037 -0.1638)
OKLCHoklch(67.61% 0.194 302.3)
XYZxyz(40.7493, 28.1527, 92.0760)
Luminance0.2815 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF73F8 #BCF873
analogous
#7379F8 #AF73F8 #F273F8
triadic
#AF73F8 #F8AF73 #73F8AF
tetradic
#AF73F8 #F87379 #BCF873 #73F8F2
square
#AF73F8 #F87379 #BCF873 #73F8F2
split-complementary
#AF73F8 #F8F273 #79F873
monochromatic
#6E0BE5 #8E39F5 #AF73F8 #D0ADFB #EEE2FE

Accessibility & contrast

On white

3.17
#AF73F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.63
#AF73F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF73F8
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF73F8#FFFFFF#000000##000000
##AF73F81.003.176.636.63
#FFFFFF3.171.0021.0021.00
#0000006.6321.001.001.00
##0000006.6321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af73f8;
/* rgb */ color: rgb(175, 115, 248);
/* oklch */ color: oklch(67.6% 0.194 302.3);
Tailwind
colors: {
  custom: {
    50: '#ca9dfb',
    500: '#af73f8',
    950: '#000000',
  },
}
SCSS
$custom: #af73f8;
$custom-light: #ca9dfb;
$custom-dark: #000000;
JSON
{
  "hex": "#af73f8",
  "rgb": {
    "r": 175,
    "g": 115,
    "b": 248
  },
  "hsl": {
    "h": 267.068,
    "s": 90.476,
    "l": 71.176
  },
  "oklch": {
    "l": 0.67607,
    "c": 0.19381,
    "h": 302.3
  },
  "luminance": 0.28153
}

Semantic roles & 50–950 ramp

primary
#AF73F8
secondary
#E5F5D2
accent
#E6007E
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF73F8

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

Preview Lab → · Contrast checker → · Palette generator →

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