#AF71EE#AF71EE

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

Color values

HEX#AF71EE
RGBrgb(175, 113, 238)
HSLhsl(270, 79%, 69%)
HSVhsv(270, 53%, 93%)
CMYKcmyk(26.5%, 52.5%, 0%, 6.7%)
CIE-LABlab(59.06, 48.03, -54.04)
CIE-LCHlch(59.06, 72.30, 311.63°)
OKLaboklab(66.72% 0.1057 -0.152)
OKLCHoklch(66.72% 0.185 304.8)
XYZxyz(39.0136, 27.0975, 84.0474)
Luminance0.2710 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF71EE #B0EE71
analogous
#7172EE #AF71EE #ED71EE
triadic
#AF71EE #EEAF71 #71EEAF
tetradic
#AF71EE #EE7172 #B0EE71 #71EEED
square
#AF71EE #EE7172 #B0EE71 #71EEED
split-complementary
#AF71EE #EEED71 #72EE71
monochromatic
#7218CC #903AE7 #AF71EE #CEA8F5 #EDDEFB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF71EE#FFFFFF#000000##000000
##AF71EE1.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)
#488CF2
Deuteranopia (green-blind)
#5B8EEB
Tritanopia (blue-blind)
#A488A5
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #af71ee;
/* rgb */ color: rgb(175, 113, 238);
/* oklch */ color: oklch(66.7% 0.185 304.8);
Tailwind
colors: {
  custom: {
    50: '#ca9cf4',
    500: '#af71ee',
    950: '#000000',
  },
}
SCSS
$custom: #af71ee;
$custom-light: #ca9cf4;
$custom-dark: #000000;
JSON
{
  "hex": "#af71ee",
  "rgb": {
    "r": 175,
    "g": 113,
    "b": 238
  },
  "hsl": {
    "h": 269.76,
    "s": 78.616,
    "l": 68.824
  },
  "oklch": {
    "l": 0.66719,
    "c": 0.18514,
    "h": 304.8
  },
  "luminance": 0.27097
}

Semantic roles & 50–950 ramp

primary
#AF71EE
secondary
#DEF0CB
accent
#DB0B74
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF71EE

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

Preview Lab → · Contrast checker → · Palette generator →

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