#AF70FE#AF70FE

#AF70FE is a light, highly saturated violet. Relative luminance 0.279; OKLCH L 67.5% C 0.205 H 301.6°. Best body text is #000000 at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#AF70FE
RGBrgb(175, 112, 254)
HSLhsl(267, 99%, 72%)
HSVhsv(267, 56%, 100%)
CMYKcmyk(31.1%, 55.9%, 0%, 0.4%)
CIE-LABlab(59.76, 52.34, -61.78)
CIE-LCHlch(59.76, 80.97, 310.27°)
OKLaboklab(67.52% 0.1075 -0.1747)
OKLCHoklch(67.52% 0.205 301.6)
XYZxyz(41.3586, 27.8579, 96.9449)
Luminance0.2786 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF70FE #BFFE70
analogous
#7078FE #AF70FE #F670FE
triadic
#AF70FE #FEAF70 #70FEAF
tetradic
#AF70FE #FE7078 #BFFE70 #70FEF6
square
#AF70FE #FE7078 #BFFE70 #70FEF6
split-complementary
#AF70FE #FEF670 #78FE70
monochromatic
#6C02F2 #8D33FE #AF70FE #D1ADFE #EEE1FF

Accessibility & contrast

On white

3.20
#AF70FE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.57
#AF70FE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF70FE
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF70FE#FFFFFF#000000##000000
##AF70FE1.003.206.576.57
#FFFFFF3.201.0021.0021.00
#0000006.5721.001.001.00
##0000006.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#338FFF
Deuteranopia (green-blind)
#4B8FFB
Tritanopia (blue-blind)
#9F8CAD
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #af70fe;
/* rgb */ color: rgb(175, 112, 254);
/* oklch */ color: oklch(67.5% 0.205 301.6);
Tailwind
colors: {
  custom: {
    50: '#cb9bff',
    500: '#af70fe',
    950: '#000000',
  },
}
SCSS
$custom: #af70fe;
$custom-light: #cb9bff;
$custom-dark: #000000;
JSON
{
  "hex": "#af70fe",
  "rgb": {
    "r": 175,
    "g": 112,
    "b": 254
  },
  "hsl": {
    "h": 266.62,
    "s": 98.611,
    "l": 71.765
  },
  "oklch": {
    "l": 0.67521,
    "c": 0.20513,
    "h": 301.6
  },
  "luminance": 0.27858
}

Semantic roles & 50–950 ramp

primary
#AF70FE
secondary
#E7F7D3
accent
#E60080
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E18
muted
#827E86

Preview Lab

Preview with #AF70FE

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

Preview Lab → · Contrast checker → · Palette generator →

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