#AF72F2#AF72F2

#AF72F2 is a light, vivid violet. Relative luminance 0.276; OKLCH L 67.1% C 0.188 H 303.8°. Best body text is #000000 at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#AF72F2
RGBrgb(175, 114, 242)
HSLhsl(269, 83%, 70%)
HSVhsv(269, 53%, 95%)
CMYKcmyk(27.7%, 52.9%, 0%, 5.1%)
CIE-LABlab(59.49, 48.44, -55.59)
CIE-LCHlch(59.49, 73.73, 311.07°)
OKLaboklab(67.1% 0.1046 -0.1565)
OKLCHoklch(67.1% 0.188 303.8)
XYZxyz(39.7200, 27.5595, 87.2142)
Luminance0.2756 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF72F2 #B5F272
analogous
#7275F2 #AF72F2 #EF72F2
triadic
#AF72F2 #F2AF72 #72F2AF
tetradic
#AF72F2 #F27275 #B5F272 #72F2EF
square
#AF72F2 #F27275 #B5F272 #72F2EF
split-complementary
#AF72F2 #F2EF72 #75F272
monochromatic
#7014D6 #8F3AED #AF72F2 #CFAAF7 #EFE2FC

Accessibility & contrast

On white

3.22
#AF72F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.51
#AF72F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF72F2
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF72F2#FFFFFF#000000##000000
##AF72F21.003.226.516.51
#FFFFFF3.221.0021.0021.00
#0000006.5121.001.001.00
##0000006.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#468EF6
Deuteranopia (green-blind)
#598FEF
Tritanopia (blue-blind)
#A38AA7
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #af72f2;
/* rgb */ color: rgb(175, 114, 242);
/* oklch */ color: oklch(67.1% 0.188 303.8);
Tailwind
colors: {
  custom: {
    50: '#ca9cf7',
    500: '#af72f2',
    950: '#000000',
  },
}
SCSS
$custom: #af72f2;
$custom-light: #ca9cf7;
$custom-dark: #000000;
JSON
{
  "hex": "#af72f2",
  "rgb": {
    "r": 175,
    "g": 114,
    "b": 242
  },
  "hsl": {
    "h": 268.594,
    "s": 83.117,
    "l": 69.804
  },
  "oklch": {
    "l": 0.67103,
    "c": 0.18828,
    "h": 303.8
  },
  "luminance": 0.27559
}

Semantic roles & 50–950 ramp

primary
#AF72F2
secondary
#E1F2CE
accent
#E00678
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF72F2

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

Preview Lab → · Contrast checker → · Palette generator →

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