#AF68EC#AF68EC

#AF68EC is a light, vivid violet. Relative luminance 0.251; OKLCH L 65.3% C 0.196 H 306.6°. Best body text is #000000 at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#AF68EC
RGBrgb(175, 104, 236)
HSLhsl(272, 78%, 67%)
HSVhsv(272, 56%, 93%)
CMYKcmyk(25.8%, 55.9%, 0%, 7.5%)
CIE-LABlab(57.14, 52.31, -55.99)
CIE-LCHlch(57.14, 76.62, 313.05°)
OKLaboklab(65.27% 0.117 -0.1577)
OKLCHoklch(65.27% 0.196 306.6)
XYZxyz(37.7667, 25.0711, 82.1902)
Luminance0.2507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF68EC #A5EC68
analogous
#6D68EC #AF68EC #EC68E7
triadic
#AF68EC #ECAF68 #68ECAF
tetradic
#AF68EC #EC6D68 #A5EC68 #68E7EC
square
#AF68EC #EC6D68 #A5EC68 #68E7EC
split-complementary
#AF68EC #E7EC68 #68EC6D
monochromatic
#7318C1 #9232E5 #AF68EC #CC9EF3 #E9D5FA

Accessibility & contrast

On white

3.49
#AF68EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.01
#AF68EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF68EC
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF68EC#FFFFFF#000000##000000
##AF68EC1.003.496.016.01
#FFFFFF3.491.0021.0021.00
#0000006.0121.001.001.00
##0000006.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3887F0
Deuteranopia (green-blind)
#528AE9
Tritanopia (blue-blind)
#A581A0
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #af68ec;
/* rgb */ color: rgb(175, 104, 236);
/* oklch */ color: oklch(65.3% 0.196 306.6);
Tailwind
colors: {
  custom: {
    50: '#ca96f3',
    500: '#af68ec',
    950: '#000000',
  },
}
SCSS
$custom: #af68ec;
$custom-light: #ca96f3;
$custom-dark: #000000;
JSON
{
  "hex": "#af68ec",
  "rgb": {
    "r": 175,
    "g": 104,
    "b": 236
  },
  "hsl": {
    "h": 272.273,
    "s": 77.647,
    "l": 66.667
  },
  "oklch": {
    "l": 0.6527,
    "c": 0.19635,
    "h": 306.6
  },
  "luminance": 0.25071
}

Semantic roles & 50–950 ramp

primary
#AF68EC
secondary
#D6EDC3
accent
#DA0C6B
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140D17
muted
#827E85

Preview Lab

Preview with #AF68EC

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

Preview Lab → · Contrast checker → · Palette generator →

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