#AF70EB#AF70EB

#AF70EB is a light, vivid violet. Relative luminance 0.267; OKLCH L 66.4% C 0.183 H 305.6°. Best body text is #000000 at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#AF70EB
RGBrgb(175, 112, 235)
HSLhsl(271, 75%, 68%)
HSVhsv(271, 52%, 92%)
CMYKcmyk(25.5%, 52.3%, 0%, 7.8%)
CIE-LABlab(58.70, 47.87, -52.96)
CIE-LCHlch(58.70, 71.39, 312.11°)
OKLaboklab(66.39% 0.1068 -0.1489)
OKLCHoklch(66.39% 0.183 305.6)
XYZxyz(38.4656, 26.7007, 81.7085)
Luminance0.2670 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF70EB #ACEB70
analogous
#7170EB #AF70EB #EB70E9
triadic
#AF70EB #EBAF70 #70EBAF
tetradic
#AF70EB #EB7170 #ACEB70 #70E9EB
square
#AF70EB #EB7170 #ACEB70 #70E9EB
split-complementary
#AF70EB #E9EB70 #70EB71
monochromatic
#721CC5 #913AE3 #AF70EB #CDA6F3 #EBDBFA

Accessibility & contrast

On white

3.31
#AF70EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.34
#AF70EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF70EB
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF70EB#FFFFFF#000000##000000
##AF70EB1.003.316.346.34
#FFFFFF3.311.0021.0021.00
#0000006.3421.001.001.00
##0000006.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#488BEF
Deuteranopia (green-blind)
#5C8EE8
Tritanopia (blue-blind)
#A586A3
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #af70eb;
/* rgb */ color: rgb(175, 112, 235);
/* oklch */ color: oklch(66.4% 0.183 305.6);
Tailwind
colors: {
  custom: {
    50: '#ca9bf2',
    500: '#af70eb',
    950: '#000000',
  },
}
SCSS
$custom: #af70eb;
$custom-light: #ca9bf2;
$custom-dark: #000000;
JSON
{
  "hex": "#af70eb",
  "rgb": {
    "r": 175,
    "g": 112,
    "b": 235
  },
  "hsl": {
    "h": 270.732,
    "s": 75.46,
    "l": 68.039
  },
  "oklch": {
    "l": 0.66394,
    "c": 0.18318,
    "h": 305.6
  },
  "luminance": 0.267
}

Semantic roles & 50–950 ramp

primary
#AF70EB
secondary
#DBEEC9
accent
#D80E70
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF70EB

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

Preview Lab → · Contrast checker → · Palette generator →

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