#AF6DF7#AF6DF7

#AF6DF7 is a light, highly saturated violet. Relative luminance 0.268; OKLCH L 66.7% C 0.201 H 303.5°. Best body text is #000000 at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#AF6DF7
RGBrgb(175, 109, 247)
HSLhsl(269, 90%, 70%)
HSVhsv(269, 56%, 97%)
CMYKcmyk(29.1%, 55.9%, 0%, 3.1%)
CIE-LABlab(58.76, 52.25, -59.52)
CIE-LCHlch(58.76, 79.21, 311.28°)
OKLaboklab(66.66% 0.111 -0.1681)
OKLCHoklch(66.66% 0.201 303.5)
XYZxyz(39.9326, 26.7667, 91.0404)
Luminance0.2677 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6DF7 #B5F76D
analogous
#6D70F7 #AF6DF7 #F46DF7
triadic
#AF6DF7 #F7AF6D #6DF7AF
tetradic
#AF6DF7 #F76D70 #B5F76D #6DF7F4
square
#AF6DF7 #F76D70 #B5F76D #6DF7F4
split-complementary
#AF6DF7 #F7F46D #70F76D
monochromatic
#700CDD #8F33F4 #AF6DF7 #CFA7FA #EFE1FD

Accessibility & contrast

On white

3.31
#AF6DF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.35
#AF6DF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6DF7
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6DF7#FFFFFF#000000##000000
##AF6DF71.003.316.356.35
#FFFFFF3.311.0021.0021.00
#0000006.3521.001.001.00
##0000006.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#358CFC
Deuteranopia (green-blind)
#4E8DF4
Tritanopia (blue-blind)
#A288A8
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #af6df7;
/* rgb */ color: rgb(175, 109, 247);
/* oklch */ color: oklch(66.7% 0.201 303.5);
Tailwind
colors: {
  custom: {
    50: '#cb99fa',
    500: '#af6df7',
    950: '#000000',
  },
}
SCSS
$custom: #af6df7;
$custom-light: #cb99fa;
$custom-dark: #000000;
JSON
{
  "hex": "#af6df7",
  "rgb": {
    "r": 175,
    "g": 109,
    "b": 247
  },
  "hsl": {
    "h": 268.696,
    "s": 89.61,
    "l": 69.804
  },
  "oklch": {
    "l": 0.66655,
    "c": 0.20144,
    "h": 303.5
  },
  "luminance": 0.26767
}

Semantic roles & 50–950 ramp

primary
#AF6DF7
secondary
#E1F3CC
accent
#E60078
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF6DF7

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

Preview Lab → · Contrast checker → · Palette generator →

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