#AF6FF7#AF6FF7

#AF6FF7 is a light, vivid violet. Relative luminance 0.272; OKLCH L 66.9% C 0.199 H 303.2°. Best body text is #000000 at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#AF6FF7
RGBrgb(175, 111, 247)
HSLhsl(268, 89%, 70%)
HSVhsv(268, 55%, 97%)
CMYKcmyk(29.1%, 55.1%, 0%, 3.1%)
CIE-LABlab(59.16, 51.20, -58.89)
CIE-LCHlch(59.16, 78.03, 311.01°)
OKLaboklab(66.95% 0.1086 -0.1662)
OKLCHoklch(66.95% 0.199 303.2)
XYZxyz(40.1484, 27.1983, 91.1123)
Luminance0.2720 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6FF7 #B7F76F
analogous
#6F73F7 #AF6FF7 #F36FF7
triadic
#AF6FF7 #F7AF6F #6FF7AF
tetradic
#AF6FF7 #F76F73 #B7F76F #6FF7F3
square
#AF6FF7 #F76F73 #B7F76F #6FF7F3
split-complementary
#AF6FF7 #F7F36F #73F76F
monochromatic
#700CDF #8F35F4 #AF6FF7 #CFA9FA #EFE2FD

Accessibility & contrast

On white

3.26
#AF6FF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.44
#AF6FF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6FF7
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6FF7#FFFFFF#000000##000000
##AF6FF71.003.266.446.44
#FFFFFF3.261.0021.0021.00
#0000006.4421.001.001.00
##0000006.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A8DFC
Deuteranopia (green-blind)
#518EF4
Tritanopia (blue-blind)
#A289A9
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #af6ff7;
/* rgb */ color: rgb(175, 111, 247);
/* oklch */ color: oklch(66.9% 0.199 303.2);
Tailwind
colors: {
  custom: {
    50: '#ca9afa',
    500: '#af6ff7',
    950: '#000000',
  },
}
SCSS
$custom: #af6ff7;
$custom-light: #ca9afa;
$custom-dark: #000000;
JSON
{
  "hex": "#af6ff7",
  "rgb": {
    "r": 175,
    "g": 111,
    "b": 247
  },
  "hsl": {
    "h": 268.235,
    "s": 89.474,
    "l": 70.196
  },
  "oklch": {
    "l": 0.66949,
    "c": 0.19852,
    "h": 303.2
  },
  "luminance": 0.27198
}

Semantic roles & 50–950 ramp

primary
#AF6FF7
secondary
#E2F4CE
accent
#E6007A
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF6FF7

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

Preview Lab → · Contrast checker → · Palette generator →

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