#AF72EA#AF72EA

#AF72EA is a light, vivid violet. Relative luminance 0.271; OKLCH L 66.6% C 0.179 H 305.6°. Best body text is #000000 at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#AF72EA
RGBrgb(175, 114, 234)
HSLhsl(271, 74%, 68%)
HSVhsv(271, 51%, 92%)
CMYKcmyk(25.2%, 51.3%, 0%, 8.2%)
CIE-LABlab(59.06, 46.57, -51.83)
CIE-LCHlch(59.06, 69.68, 311.94°)
OKLaboklab(66.64% 0.1041 -0.1456)
OKLCHoklch(66.64% 0.179 305.6)
XYZxyz(38.5447, 27.0894, 81.0241)
Luminance0.2709 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF72EA #ADEA72
analogous
#7372EA #AF72EA #EA72E9
triadic
#AF72EA #EAAF72 #72EAAF
tetradic
#AF72EA #EA7372 #ADEA72 #72E9EA
square
#AF72EA #EA7372 #ADEA72 #72E9EA
split-complementary
#AF72EA #E9EA72 #72EA73
monochromatic
#721DC4 #913DE2 #AF72EA #CDA7F2 #EBDDFA

Accessibility & contrast

On white

3.27
#AF72EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.42
#AF72EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF72EA
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF72EA#FFFFFF#000000##000000
##AF72EA1.003.276.426.42
#FFFFFF3.271.0021.0021.00
#0000006.4221.001.001.00
##0000006.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D8CEE
Deuteranopia (green-blind)
#5F8EE7
Tritanopia (blue-blind)
#A588A3
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #af72ea;
/* rgb */ color: rgb(175, 114, 234);
/* oklch */ color: oklch(66.6% 0.179 305.6);
Tailwind
colors: {
  custom: {
    50: '#ca9cf1',
    500: '#af72ea',
    950: '#000000',
  },
}
SCSS
$custom: #af72ea;
$custom-light: #ca9cf1;
$custom-dark: #000000;
JSON
{
  "hex": "#af72ea",
  "rgb": {
    "r": 175,
    "g": 114,
    "b": 234
  },
  "hsl": {
    "h": 270.5,
    "s": 74.074,
    "l": 68.235
  },
  "oklch": {
    "l": 0.66644,
    "c": 0.17894,
    "h": 305.6
  },
  "luminance": 0.27089
}

Semantic roles & 50–950 ramp

primary
#AF72EA
secondary
#DCEECA
accent
#D60F71
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#130E17
muted
#827E85

Preview Lab

Preview with #AF72EA

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

Preview Lab → · Contrast checker → · Palette generator →

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