#AF70EA#AF70EA

#AF70EA is a light, vivid violet. Relative luminance 0.266; OKLCH L 66.3% C 0.182 H 305.9°. Best body text is #000000 at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#AF70EA
RGBrgb(175, 112, 234)
HSLhsl(271, 74%, 68%)
HSVhsv(271, 52%, 92%)
CMYKcmyk(25.2%, 52.1%, 0%, 8.2%)
CIE-LABlab(58.64, 47.64, -52.49)
CIE-LCHlch(58.64, 70.89, 312.23°)
OKLaboklab(66.34% 0.1067 -0.1475)
OKLCHoklch(66.34% 0.182 305.9)
XYZxyz(38.3215, 26.6431, 80.9498)
Luminance0.2664 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF70EA #ABEA70
analogous
#7270EA #AF70EA #EA70E8
triadic
#AF70EA #EAAF70 #70EAAF
tetradic
#AF70EA #EA7270 #ABEA70 #70E8EA
square
#AF70EA #EA7270 #ABEA70 #70E8EA
split-complementary
#AF70EA #E8EA70 #70EA72
monochromatic
#731DC3 #913BE2 #AF70EA #CDA5F2 #EBDBFA

Accessibility & contrast

On white

3.32
#AF70EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.33
#AF70EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF70EA
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF70EA#FFFFFF#000000##000000
##AF70EA1.003.326.336.33
#FFFFFF3.321.0021.0021.00
#0000006.3321.001.001.00
##0000006.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#498BEE
Deuteranopia (green-blind)
#5D8DE7
Tritanopia (blue-blind)
#A586A3
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #af70ea;
/* rgb */ color: rgb(175, 112, 234);
/* oklch */ color: oklch(66.3% 0.182 305.9);
Tailwind
colors: {
  custom: {
    50: '#ca9bf1',
    500: '#af70ea',
    950: '#000000',
  },
}
SCSS
$custom: #af70ea;
$custom-light: #ca9bf1;
$custom-dark: #000000;
JSON
{
  "hex": "#af70ea",
  "rgb": {
    "r": 175,
    "g": 112,
    "b": 234
  },
  "hsl": {
    "h": 270.984,
    "s": 74.39,
    "l": 67.843
  },
  "oklch": {
    "l": 0.66337,
    "c": 0.18202,
    "h": 305.9
  },
  "luminance": 0.26643
}

Semantic roles & 50–950 ramp

primary
#AF70EA
secondary
#DAEEC8
accent
#D70F6F
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#130E17
muted
#827E85

Preview Lab

Preview with #AF70EA

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

Preview Lab → · Contrast checker → · Palette generator →

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