#AF6BF2#AF6BF2

#AF6BF2 is a light, vivid violet. Relative luminance 0.260; OKLCH L 66.1% C 0.199 H 304.8°. Best body text is #000000 at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#AF6BF2
RGBrgb(175, 107, 242)
HSLhsl(270, 84%, 68%)
HSVhsv(270, 56%, 95%)
CMYKcmyk(27.7%, 55.8%, 0%, 5.1%)
CIE-LABlab(58.08, 52.13, -57.84)
CIE-LCHlch(58.08, 77.87, 312.03°)
OKLaboklab(66.06% 0.1134 -0.1631)
OKLCHoklch(66.06% 0.199 304.8)
XYZxyz(38.9604, 26.0404, 86.9610)
Luminance0.2604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6BF2 #AEF26B
analogous
#6B6BF2 #AF6BF2 #F26BF2
triadic
#AF6BF2 #F2AF6B #6BF2AF
tetradic
#AF6BF2 #F26B6B #AEF26B #6BF2F2
square
#AF6BF2 #F26B6B #AEF26B #6BF2F2
split-complementary
#AF6BF2 #F2F26B #6BF26B
monochromatic
#7212D0 #9133ED #AF6BF2 #CDA3F7 #ECDCFC

Accessibility & contrast

On white

3.38
#AF6BF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.21
#AF6BF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6BF2
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6BF2#FFFFFF#000000##000000
##AF6BF21.003.386.216.21
#FFFFFF3.381.0021.0021.00
#0000006.2121.001.001.00
##0000006.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#378AF6
Deuteranopia (green-blind)
#518CEF
Tritanopia (blue-blind)
#A385A4
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #af6bf2;
/* rgb */ color: rgb(175, 107, 242);
/* oklch */ color: oklch(66.1% 0.199 304.8);
Tailwind
colors: {
  custom: {
    50: '#ca98f7',
    500: '#af6bf2',
    950: '#000000',
  },
}
SCSS
$custom: #af6bf2;
$custom-light: #ca98f7;
$custom-dark: #000000;
JSON
{
  "hex": "#af6bf2",
  "rgb": {
    "r": 175,
    "g": 107,
    "b": 242
  },
  "hsl": {
    "h": 270.222,
    "s": 83.851,
    "l": 68.431
  },
  "oklch": {
    "l": 0.66062,
    "c": 0.19868,
    "h": 304.8
  },
  "luminance": 0.2604
}

Semantic roles & 50–950 ramp

primary
#AF6BF2
secondary
#DCF1C8
accent
#E00572
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF6BF2

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

Preview Lab → · Contrast checker → · Palette generator →

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