#AF6BFD#AF6BFD

#AF6BFD is a light, highly saturated violet. Relative luminance 0.267; OKLCH L 66.7% C 0.211 H 302.5°. Best body text is #000000 at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#AF6BFD
RGBrgb(175, 107, 253)
HSLhsl(268, 97%, 71%)
HSVhsv(268, 58%, 99%)
CMYKcmyk(30.8%, 57.7%, 0%, 0.8%)
CIE-LABlab(58.72, 54.70, -62.91)
CIE-LCHlch(58.72, 83.37, 311.01°)
OKLaboklab(66.74% 0.1135 -0.178)
OKLCHoklch(66.74% 0.211 302.5)
XYZxyz(40.6624, 26.7212, 95.9249)
Luminance0.2672 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6BFD #B9FD6B
analogous
#6B70FD #AF6BFD #F86BFD
triadic
#AF6BFD #FDAF6B #6BFDAF
tetradic
#AF6BFD #FD6B70 #B9FD6B #6BFDF8
square
#AF6BFD #FD6B70 #B9FD6B #6BFDF8
split-complementary
#AF6BFD #FDF86B #70FD6B
monochromatic
#6F03EA #8E2FFC #AF6BFD #D0A7FE #EFE1FF

Accessibility & contrast

On white

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

On black

6.34
#AF6BFD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6BFD
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6BFD#FFFFFF#000000##000000
##AF6BFD1.003.316.346.34
#FFFFFF3.311.0021.0021.00
#0000006.3421.001.001.00
##0000006.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#258CFF
Deuteranopia (green-blind)
#458DFA
Tritanopia (blue-blind)
#A089AA
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #af6bfd;
/* rgb */ color: rgb(175, 107, 253);
/* oklch */ color: oklch(66.7% 0.211 302.5);
Tailwind
colors: {
  custom: {
    50: '#cb98ff',
    500: '#af6bfd',
    950: '#000000',
  },
}
SCSS
$custom: #af6bfd;
$custom-light: #cb98ff;
$custom-dark: #000000;
JSON
{
  "hex": "#af6bfd",
  "rgb": {
    "r": 175,
    "g": 107,
    "b": 253
  },
  "hsl": {
    "h": 267.945,
    "s": 97.333,
    "l": 70.588
  },
  "oklch": {
    "l": 0.66737,
    "c": 0.2111,
    "h": 302.5
  },
  "luminance": 0.26721
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF6BFD

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

Preview Lab → · Contrast checker → · Palette generator →

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