#AF6AFF#AF6AFF

#AF6AFF is a light, highly saturated violet. Relative luminance 0.266; OKLCH L 66.7% C 0.215 H 302.3°. Best body text is #000000 at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#AF6AFF
RGBrgb(175, 106, 255)
HSLhsl(268, 100%, 71%)
HSVhsv(268, 58%, 100%)
CMYKcmyk(31.4%, 58.4%, 0%, 0%)
CIE-LABlab(58.64, 55.69, -64.13)
CIE-LCHlch(58.64, 84.94, 310.97°)
OKLaboklab(66.72% 0.1147 -0.1816)
OKLCHoklch(66.72% 0.215 302.3)
XYZxyz(40.8791, 26.6420, 97.5771)
Luminance0.2664 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6AFF #BAFF6A
analogous
#6A6FFF #AF6AFF #F96AFF
triadic
#AF6AFF #FFAF6A #6AFFAF
tetradic
#AF6AFF #FF6A6F #BAFF6A #6AFFF9
square
#AF6AFF #FF6A6F #BAFF6A #6AFFF9
split-complementary
#AF6AFF #FFF96A #6FFF6A
monochromatic
#6E00EF #8E2DFF #AF6AFF #D0A7FF #EFE0FF

Accessibility & contrast

On white

3.32
#AF6AFF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.33
#AF6AFF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6AFF
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6AFF#FFFFFF#000000##000000
##AF6AFF1.003.326.336.33
#FFFFFF3.321.0021.0021.00
#0000006.3321.001.001.00
##0000006.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#1D8CFF
Deuteranopia (green-blind)
#418DFC
Tritanopia (blue-blind)
#9F88AB
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #af6aff;
/* rgb */ color: rgb(175, 106, 255);
/* oklch */ color: oklch(66.7% 0.215 302.3);
Tailwind
colors: {
  custom: {
    50: '#cb97ff',
    500: '#af6aff',
    950: '#000000',
  },
}
SCSS
$custom: #af6aff;
$custom-light: #cb97ff;
$custom-dark: #000000;
JSON
{
  "hex": "#af6aff",
  "rgb": {
    "r": 175,
    "g": 106,
    "b": 255
  },
  "hsl": {
    "h": 267.785,
    "s": 100,
    "l": 70.784
  },
  "oklch": {
    "l": 0.66721,
    "c": 0.21475,
    "h": 302.3
  },
  "luminance": 0.26642
}

Semantic roles & 50–950 ramp

primary
#AF6AFF
secondary
#E4F6CE
accent
#E6007B
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E18
muted
#827E86

Preview Lab

Preview with #AF6AFF

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

Preview Lab → · Contrast checker → · Palette generator →

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