#AF6BF5#AF6BF5

#AF6BF5 is a light, highly saturated violet. Relative luminance 0.262; OKLCH L 66.2% C 0.202 H 304.2°. Best body text is #000000 at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#AF6BF5
RGBrgb(175, 107, 245)
HSLhsl(270, 87%, 69%)
HSVhsv(270, 56%, 96%)
CMYKcmyk(28.6%, 56.3%, 0%, 3.9%)
CIE-LABlab(58.25, 52.83, -59.23)
CIE-LCHlch(58.25, 79.37, 311.73°)
OKLaboklab(66.24% 0.1135 -0.1672)
OKLCHoklch(66.24% 0.202 304.2)
XYZxyz(39.4147, 26.2221, 89.3534)
Luminance0.2622 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6BF5 #B1F56B
analogous
#6B6CF5 #AF6BF5 #F46BF5
triadic
#AF6BF5 #F5AF6B #6BF5AF
tetradic
#AF6BF5 #F56B6C #B1F56B #6BF5F4
square
#AF6BF5 #F56B6C #B1F56B #6BF5F4
split-complementary
#AF6BF5 #F5F46B #6CF56B
monochromatic
#710FD7 #9032F1 #AF6BF5 #CEA4F9 #EDDEFD

Accessibility & contrast

On white

3.36
#AF6BF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.24
#AF6BF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6BF5
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6BF5#FFFFFF#000000##000000
##AF6BF51.003.366.246.24
#FFFFFF3.361.0021.0021.00
#0000006.2421.001.001.00
##0000006.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#338AFA
Deuteranopia (green-blind)
#4E8CF2
Tritanopia (blue-blind)
#A286A6
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #af6bf5;
/* rgb */ color: rgb(175, 107, 245);
/* oklch */ color: oklch(66.2% 0.202 304.2);
Tailwind
colors: {
  custom: {
    50: '#cb98f9',
    500: '#af6bf5',
    950: '#000000',
  },
}
SCSS
$custom: #af6bf5;
$custom-light: #cb98f9;
$custom-dark: #000000;
JSON
{
  "hex": "#af6bf5",
  "rgb": {
    "r": 175,
    "g": 107,
    "b": 245
  },
  "hsl": {
    "h": 269.565,
    "s": 87.342,
    "l": 69.02
  },
  "oklch": {
    "l": 0.66244,
    "c": 0.20207,
    "h": 304.2
  },
  "luminance": 0.26222
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF6BF5

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

Preview Lab → · Contrast checker → · Palette generator →

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