#AF73DC#AF73DC

#AF73DC is a light, vivid violet. Relative luminance 0.265; OKLCH L 66.0% C 0.161 H 309.0°. Best body text is #000000 at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#AF73DC
RGBrgb(175, 115, 220)
HSLhsl(274, 60%, 66%)
HSVhsv(274, 48%, 86%)
CMYKcmyk(20.5%, 47.7%, 0%, 13.7%)
CIE-LABlab(58.55, 42.85, -44.81)
CIE-LCHlch(58.55, 61.99, 313.72°)
OKLaboklab(66.03% 0.1013 -0.1251)
OKLCHoklch(66.03% 0.161 309)
XYZxyz(36.7257, 26.5433, 70.8849)
Luminance0.2654 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF73DC #A0DC73
analogous
#7A73DC #AF73DC #DC73D4
triadic
#AF73DC #DCAF73 #73DCAF
tetradic
#AF73DC #DC7A73 #A0DC73 #73D4DC
square
#AF73DC #DC7A73 #A0DC73 #73D4DC
split-complementary
#AF73DC #D4DC73 #73DC7A
monochromatic
#732BAA #9342D0 #AF73DC #CBA4E8 #E7D5F4

Accessibility & contrast

On white

3.33
#AF73DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.31
#AF73DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF73DC
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF73DC#FFFFFF#000000##000000
##AF73DC1.003.336.316.31
#FFFFFF3.331.0021.0021.00
#0000006.3121.001.001.00
##0000006.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#598AE0
Deuteranopia (green-blind)
#698ED9
Tritanopia (blue-blind)
#A9849D
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #af73dc;
/* rgb */ color: rgb(175, 115, 220);
/* oklch */ color: oklch(66.0% 0.161 309.0);
Tailwind
colors: {
  custom: {
    50: '#c99de7',
    500: '#af73dc',
    950: '#000000',
  },
}
SCSS
$custom: #af73dc;
$custom-light: #c99de7;
$custom-dark: #000000;
JSON
{
  "hex": "#af73dc",
  "rgb": {
    "r": 175,
    "g": 115,
    "b": 220
  },
  "hsl": {
    "h": 274.286,
    "s": 60,
    "l": 65.686
  },
  "oklch": {
    "l": 0.66033,
    "c": 0.16098,
    "h": 309
  },
  "luminance": 0.26543
}

Semantic roles & 50–950 ramp

primary
#AF73DC
secondary
#D3E7C4
accent
#C81E67
background
#FCF9FE
surface
#F8F2FC
border
#D1CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #AF73DC

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

Preview Lab → · Contrast checker → · Palette generator →

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