#AF6BF8#AF6BF8

#AF6BF8 is a light, highly saturated violet. Relative luminance 0.264; OKLCH L 66.4% C 0.205 H 303.5°. Best body text is #000000 at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#AF6BF8
RGBrgb(175, 107, 248)
HSLhsl(269, 91%, 70%)
HSVhsv(269, 57%, 97%)
CMYKcmyk(29.4%, 56.9%, 0%, 2.7%)
CIE-LABlab(58.42, 53.53, -60.62)
CIE-LCHlch(58.42, 80.87, 311.45°)
OKLaboklab(66.43% 0.1135 -0.1713)
OKLCHoklch(66.43% 0.205 303.5)
XYZxyz(39.8764, 26.4067, 91.7850)
Luminance0.2641 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6BF8 #B4F86B
analogous
#6B6EF8 #AF6BF8 #F56BF8
triadic
#AF6BF8 #F8AF6B #6BF8AF
tetradic
#AF6BF8 #F86B6E #B4F86B #6BF8F5
square
#AF6BF8 #F86B6E #B4F86B #6BF8F5
split-complementary
#AF6BF8 #F8F56B #6EF86B
monochromatic
#710BDE #8F31F5 #AF6BF8 #CFA5FB #EEE0FE

Accessibility & contrast

On white

3.34
#AF6BF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.28
#AF6BF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6BF8
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6BF8#FFFFFF#000000##000000
##AF6BF81.003.346.286.28
#FFFFFF3.341.0021.0021.00
#0000006.2821.001.001.00
##0000006.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E8BFD
Deuteranopia (green-blind)
#4B8CF5
Tritanopia (blue-blind)
#A287A7
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #af6bf8;
/* rgb */ color: rgb(175, 107, 248);
/* oklch */ color: oklch(66.4% 0.205 303.5);
Tailwind
colors: {
  custom: {
    50: '#cb98fb',
    500: '#af6bf8',
    950: '#000000',
  },
}
SCSS
$custom: #af6bf8;
$custom-light: #cb98fb;
$custom-dark: #000000;
JSON
{
  "hex": "#af6bf8",
  "rgb": {
    "r": 175,
    "g": 107,
    "b": 248
  },
  "hsl": {
    "h": 268.936,
    "s": 90.968,
    "l": 69.608
  },
  "oklch": {
    "l": 0.66427,
    "c": 0.20546,
    "h": 303.5
  },
  "luminance": 0.26407
}

Semantic roles & 50–950 ramp

primary
#AF6BF8
secondary
#E0F4CB
accent
#E60077
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF6BF8

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

Preview Lab → · Contrast checker → · Palette generator →

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