#AF6FF8#AF6FF8

#AF6FF8 is a light, vivid violet. Relative luminance 0.273; OKLCH L 67.0% C 0.200 H 303.0°. Best body text is #000000 at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#AF6FF8
RGBrgb(175, 111, 248)
HSLhsl(268, 91%, 70%)
HSVhsv(268, 55%, 97%)
CMYKcmyk(29.4%, 55.2%, 0%, 2.7%)
CIE-LABlab(59.21, 51.44, -59.35)
CIE-LCHlch(59.21, 78.54, 310.92°)
OKLaboklab(67.01% 0.1086 -0.1675)
OKLCHoklch(67.01% 0.2 303)
XYZxyz(40.3031, 27.2602, 91.9272)
Luminance0.2726 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6FF8 #B8F86F
analogous
#6F74F8 #AF6FF8 #F36FF8
triadic
#AF6FF8 #F8AF6F #6FF8AF
tetradic
#AF6FF8 #F86F74 #B8F86F #6FF8F3
square
#AF6FF8 #F86F74 #B8F86F #6FF8F3
split-complementary
#AF6FF8 #F8F36F #74F86F
monochromatic
#6F0BE2 #8F35F5 #AF6FF8 #CFA9FB #EFE2FE

Accessibility & contrast

On white

3.25
#AF6FF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.45
#AF6FF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6FF8
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6FF8#FFFFFF#000000##000000
##AF6FF81.003.256.456.45
#FFFFFF3.251.0021.0021.00
#0000006.4521.001.001.00
##0000006.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#398DFD
Deuteranopia (green-blind)
#508EF5
Tritanopia (blue-blind)
#A18AA9
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #af6ff8;
/* rgb */ color: rgb(175, 111, 248);
/* oklch */ color: oklch(67.0% 0.200 303.0);
Tailwind
colors: {
  custom: {
    50: '#ca9afb',
    500: '#af6ff8',
    950: '#000000',
  },
}
SCSS
$custom: #af6ff8;
$custom-light: #ca9afb;
$custom-dark: #000000;
JSON
{
  "hex": "#af6ff8",
  "rgb": {
    "r": 175,
    "g": 111,
    "b": 248
  },
  "hsl": {
    "h": 268.029,
    "s": 90.728,
    "l": 70.392
  },
  "oklch": {
    "l": 0.67009,
    "c": 0.19967,
    "h": 303
  },
  "luminance": 0.2726
}

Semantic roles & 50–950 ramp

primary
#AF6FF8
secondary
#E3F4CF
accent
#E6007A
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF6FF8

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

Preview Lab → · Contrast checker → · Palette generator →

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