#AF6DEF#AF6DEF

#AF6DEF is a light, vivid violet. Relative luminance 0.263; OKLCH L 66.2% C 0.192 H 305.2°. Best body text is #000000 at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#AF6DEF
RGBrgb(175, 109, 239)
HSLhsl(270, 80%, 68%)
HSVhsv(270, 54%, 94%)
CMYKcmyk(26.8%, 54.4%, 0%, 6.3%)
CIE-LABlab(58.31, 50.39, -55.81)
CIE-LCHlch(58.31, 75.19, 312.08°)
OKLaboklab(66.18% 0.1108 -0.1572)
OKLCHoklch(66.18% 0.192 305.2)
XYZxyz(38.7245, 26.2835, 84.6778)
Luminance0.2628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6DEF #ADEF6D
analogous
#6E6DEF #AF6DEF #EF6DEE
triadic
#AF6DEF #EFAF6D #6DEFAF
tetradic
#AF6DEF #EF6E6D #ADEF6D #6DEEEF
square
#AF6DEF #EF6E6D #ADEF6D #6DEEEF
split-complementary
#AF6DEF #EEEF6D #6DEF6E
monochromatic
#7216CB #9136E9 #AF6DEF #CDA4F5 #EBDBFB

Accessibility & contrast

On white

3.36
#AF6DEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.26
#AF6DEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6DEF
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6DEF#FFFFFF#000000##000000
##AF6DEF1.003.366.266.26
#FFFFFF3.361.0021.0021.00
#0000006.2621.001.001.00
##0000006.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F8AF3
Deuteranopia (green-blind)
#568CEC
Tritanopia (blue-blind)
#A485A4
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #af6def;
/* rgb */ color: rgb(175, 109, 239);
/* oklch */ color: oklch(66.2% 0.192 305.2);
Tailwind
colors: {
  custom: {
    50: '#ca99f5',
    500: '#af6def',
    950: '#000000',
  },
}
SCSS
$custom: #af6def;
$custom-light: #ca99f5;
$custom-dark: #000000;
JSON
{
  "hex": "#af6def",
  "rgb": {
    "r": 175,
    "g": 109,
    "b": 239
  },
  "hsl": {
    "h": 270.462,
    "s": 80.247,
    "l": 68.235
  },
  "oklch": {
    "l": 0.66177,
    "c": 0.19231,
    "h": 305.2
  },
  "luminance": 0.26283
}

Semantic roles & 50–950 ramp

primary
#AF6DEF
secondary
#DCF0C8
accent
#DD0971
background
#FCF9FF
surface
#F9F2FE
border
#D2CCD6
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF6DEF

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

Preview Lab → · Contrast checker → · Palette generator →

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