#AF70DC#AF70DC

#AF70DC is a light, vivid violet. Relative luminance 0.259; OKLCH L 65.6% C 0.166 H 309.5°. Best body text is #000000 at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#AF70DC
RGBrgb(175, 112, 220)
HSLhsl(275, 61%, 65%)
HSVhsv(275, 49%, 86%)
CMYKcmyk(20.5%, 49.1%, 0%, 13.7%)
CIE-LABlab(57.91, 44.47, -45.81)
CIE-LCHlch(57.91, 63.84, 314.15°)
OKLaboklab(65.56% 0.1054 -0.128)
OKLCHoklch(65.56% 0.166 309.5)
XYZxyz(36.3892, 25.8702, 70.7727)
Luminance0.2587 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF70DC #9DDC70
analogous
#7970DC #AF70DC #DC70D3
triadic
#AF70DC #DCAF70 #70DCAF
tetradic
#AF70DC #DC7970 #9DDC70 #70D3DC
square
#AF70DC #DC7970 #9DDC70 #70D3DC
split-complementary
#AF70DC #D3DC70 #70DC79
monochromatic
#7329A8 #933FD0 #AF70DC #CBA1E8 #E6D2F4

Accessibility & contrast

On white

3.40
#AF70DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.17
#AF70DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF70DC
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF70DC#FFFFFF#000000##000000
##AF70DC1.003.406.176.17
#FFFFFF3.401.0021.0021.00
#0000006.1721.001.001.00
##0000006.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5488E0
Deuteranopia (green-blind)
#668CD9
Tritanopia (blue-blind)
#A9829C
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #af70dc;
/* rgb */ color: rgb(175, 112, 220);
/* oklch */ color: oklch(65.6% 0.166 309.5);
Tailwind
colors: {
  custom: {
    50: '#c99be7',
    500: '#af70dc',
    950: '#000000',
  },
}
SCSS
$custom: #af70dc;
$custom-light: #c99be7;
$custom-dark: #000000;
JSON
{
  "hex": "#af70dc",
  "rgb": {
    "r": 175,
    "g": 112,
    "b": 220
  },
  "hsl": {
    "h": 275,
    "s": 60.674,
    "l": 65.098
  },
  "oklch": {
    "l": 0.6556,
    "c": 0.16582,
    "h": 309.5
  },
  "luminance": 0.2587
}

Semantic roles & 50–950 ramp

primary
#AF70DC
secondary
#D1E6C2
accent
#C81D64
background
#FCF9FE
surface
#F9F2FC
border
#D2CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #AF70DC

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

Preview Lab → · Contrast checker → · Palette generator →

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