#AF6AF5#AF6AF5

#AF6AF5 is a light, highly saturated violet. Relative luminance 0.260; OKLCH L 66.1% C 0.204 H 304.3°. Best body text is #000000 at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#AF6AF5
RGBrgb(175, 106, 245)
HSLhsl(270, 87%, 69%)
HSVhsv(270, 57%, 96%)
CMYKcmyk(28.6%, 56.7%, 0%, 3.9%)
CIE-LABlab(58.05, 53.34, -59.55)
CIE-LCHlch(58.05, 79.95, 311.85°)
OKLaboklab(66.1% 0.1147 -0.1681)
OKLCHoklch(66.1% 0.204 304.3)
XYZxyz(39.3110, 26.0148, 89.3189)
Luminance0.2601 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6AF5 #B0F56A
analogous
#6A6BF5 #AF6AF5 #F46AF5
triadic
#AF6AF5 #F5AF6A #6AF5AF
tetradic
#AF6AF5 #F56A6B #B0F56A #6AF5F4
square
#AF6AF5 #F56A6B #B0F56A #6AF5F4
split-complementary
#AF6AF5 #F5F46A #6BF56A
monochromatic
#720ED6 #9031F1 #AF6AF5 #CEA3F9 #EDDDFD

Accessibility & contrast

On white

3.39
#AF6AF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.20
#AF6AF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6AF5
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6AF5#FFFFFF#000000##000000
##AF6AF51.003.396.206.20
#FFFFFF3.391.0021.0021.00
#0000006.2021.001.001.00
##0000006.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#308AFA
Deuteranopia (green-blind)
#4D8CF2
Tritanopia (blue-blind)
#A385A6
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #af6af5;
/* rgb */ color: rgb(175, 106, 245);
/* oklch */ color: oklch(66.1% 0.204 304.3);
Tailwind
colors: {
  custom: {
    50: '#cb97f9',
    500: '#af6af5',
    950: '#000000',
  },
}
SCSS
$custom: #af6af5;
$custom-light: #cb97f9;
$custom-dark: #000000;
JSON
{
  "hex": "#af6af5",
  "rgb": {
    "r": 175,
    "g": 106,
    "b": 245
  },
  "hsl": {
    "h": 269.784,
    "s": 87.421,
    "l": 68.824
  },
  "oklch": {
    "l": 0.661,
    "c": 0.20352,
    "h": 304.3
  },
  "luminance": 0.26015
}

Semantic roles & 50–950 ramp

primary
#AF6AF5
secondary
#DEF2C9
accent
#E40274
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF6AF5

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

Preview Lab → · Contrast checker → · Palette generator →

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