#AF70F8#AF70F8

#AF70F8 is a light, vivid violet. Relative luminance 0.275; OKLCH L 67.2% C 0.198 H 302.8°. Best body text is #000000 at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#AF70F8
RGBrgb(175, 112, 248)
HSLhsl(268, 91%, 71%)
HSVhsv(268, 55%, 97%)
CMYKcmyk(29.4%, 54.8%, 0%, 2.7%)
CIE-LABlab(59.42, 50.91, -59.03)
CIE-LCHlch(59.42, 77.95, 310.78°)
OKLaboklab(67.16% 0.1074 -0.1666)
OKLCHoklch(67.16% 0.198 302.8)
XYZxyz(40.4128, 27.4796, 91.9638)
Luminance0.2748 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF70F8 #B9F870
analogous
#7075F8 #AF70F8 #F370F8
triadic
#AF70F8 #F8AF70 #70F8AF
tetradic
#AF70F8 #F87075 #B9F870 #70F8F3
square
#AF70F8 #F87075 #B9F870 #70F8F3
split-complementary
#AF70F8 #F8F370 #75F870
monochromatic
#6F0BE3 #8E36F5 #AF70F8 #D0AAFB #EFE2FE

Accessibility & contrast

On white

3.23
#AF70F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.50
#AF70F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF70F8
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF70F8#FFFFFF#000000##000000
##AF70F81.003.236.506.50
#FFFFFF3.231.0021.0021.00
#0000006.5021.001.001.00
##0000006.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B8EFD
Deuteranopia (green-blind)
#518FF5
Tritanopia (blue-blind)
#A18AA9
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #af70f8;
/* rgb */ color: rgb(175, 112, 248);
/* oklch */ color: oklch(67.2% 0.198 302.8);
Tailwind
colors: {
  custom: {
    50: '#ca9bfb',
    500: '#af70f8',
    950: '#000000',
  },
}
SCSS
$custom: #af70f8;
$custom-light: #ca9bfb;
$custom-dark: #000000;
JSON
{
  "hex": "#af70f8",
  "rgb": {
    "r": 175,
    "g": 112,
    "b": 248
  },
  "hsl": {
    "h": 267.794,
    "s": 90.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.67157,
    "c": 0.19822,
    "h": 302.8
  },
  "luminance": 0.2748
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF70F8

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

Preview Lab → · Contrast checker → · Palette generator →

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