#AF70EF#AF70EF

#AF70EF is a light, vivid violet. Relative luminance 0.269; OKLCH L 66.6% C 0.188 H 304.7°. Best body text is #000000 at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#AF70EF
RGBrgb(175, 112, 239)
HSLhsl(270, 80%, 69%)
HSVhsv(270, 53%, 94%)
CMYKcmyk(26.8%, 53.1%, 0%, 6.3%)
CIE-LABlab(58.91, 48.80, -54.84)
CIE-LCHlch(58.91, 73.41, 311.67°)
OKLaboklab(66.63% 0.107 -0.1543)
OKLCHoklch(66.63% 0.188 304.7)
XYZxyz(39.0500, 26.9345, 84.7863)
Luminance0.2693 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF70EF #B0EF70
analogous
#7071EF #AF70EF #EF70EF
triadic
#AF70EF #EFAF70 #70EFAF
tetradic
#AF70EF #EF7071 #B0EF70 #70EFEF
square
#AF70EF #EF7071 #B0EF70 #70EFEF
split-complementary
#AF70EF #EFEF70 #71EF70
monochromatic
#7217CE #9039E9 #AF70EF #CEA7F5 #EDDEFB

Accessibility & contrast

On white

3.29
#AF70EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.39
#AF70EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF70EF
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF70EF#FFFFFF#000000##000000
##AF70EF1.003.296.396.39
#FFFFFF3.291.0021.0021.00
#0000006.3921.001.001.00
##0000006.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#458CF3
Deuteranopia (green-blind)
#598EEC
Tritanopia (blue-blind)
#A488A5
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #af70ef;
/* rgb */ color: rgb(175, 112, 239);
/* oklch */ color: oklch(66.6% 0.188 304.7);
Tailwind
colors: {
  custom: {
    50: '#ca9bf5',
    500: '#af70ef',
    950: '#000000',
  },
}
SCSS
$custom: #af70ef;
$custom-light: #ca9bf5;
$custom-dark: #000000;
JSON
{
  "hex": "#af70ef",
  "rgb": {
    "r": 175,
    "g": 112,
    "b": 239
  },
  "hsl": {
    "h": 269.764,
    "s": 79.874,
    "l": 68.824
  },
  "oklch": {
    "l": 0.66625,
    "c": 0.18781,
    "h": 304.7
  },
  "luminance": 0.26934
}

Semantic roles & 50–950 ramp

primary
#AF70EF
secondary
#DEF0CB
accent
#DC0974
background
#FCF9FF
surface
#F9F2FE
border
#D2CCD6
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF70EF

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

Preview Lab → · Contrast checker → · Palette generator →

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