#AF6BF7#AF6BF7

#AF6BF7 is a light, highly saturated violet. Relative luminance 0.263; OKLCH L 66.4% C 0.204 H 303.7°. Best body text is #000000 at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#AF6BF7
RGBrgb(175, 107, 247)
HSLhsl(269, 90%, 69%)
HSVhsv(269, 57%, 97%)
CMYKcmyk(29.1%, 56.7%, 0%, 3.1%)
CIE-LABlab(58.36, 53.29, -60.16)
CIE-LCHlch(58.36, 80.37, 311.54°)
OKLaboklab(66.37% 0.1135 -0.1699)
OKLCHoklch(66.37% 0.204 303.7)
XYZxyz(39.7216, 26.3448, 90.9701)
Luminance0.2635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6BF7 #B3F76B
analogous
#6B6DF7 #AF6BF7 #F56BF7
triadic
#AF6BF7 #F7AF6B #6BF7AF
tetradic
#AF6BF7 #F76B6D #B3F76B #6BF7F5
square
#AF6BF7 #F76B6D #B3F76B #6BF7F5
split-complementary
#AF6BF7 #F7F56B #6DF76B
monochromatic
#710CDC #9031F4 #AF6BF7 #CEA5FA #EEDFFD

Accessibility & contrast

On white

3.35
#AF6BF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.27
#AF6BF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6BF7
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6BF7#FFFFFF#000000##000000
##AF6BF71.003.356.276.27
#FFFFFF3.351.0021.0021.00
#0000006.2721.001.001.00
##0000006.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#308BFC
Deuteranopia (green-blind)
#4C8CF4
Tritanopia (blue-blind)
#A287A7
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #af6bf7;
/* rgb */ color: rgb(175, 107, 247);
/* oklch */ color: oklch(66.4% 0.204 303.7);
Tailwind
colors: {
  custom: {
    50: '#cb98fa',
    500: '#af6bf7',
    950: '#000000',
  },
}
SCSS
$custom: #af6bf7;
$custom-light: #cb98fa;
$custom-dark: #000000;
JSON
{
  "hex": "#af6bf7",
  "rgb": {
    "r": 175,
    "g": 107,
    "b": 247
  },
  "hsl": {
    "h": 269.143,
    "s": 89.744,
    "l": 69.412
  },
  "oklch": {
    "l": 0.66366,
    "c": 0.20433,
    "h": 303.7
  },
  "luminance": 0.26345
}

Semantic roles & 50–950 ramp

primary
#AF6BF7
secondary
#DFF3CB
accent
#E60076
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF6BF7

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

Preview Lab → · Contrast checker → · Palette generator →

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