#AF70F2#AF70F2

#AF70F2 is a light, vivid violet. Relative luminance 0.271; OKLCH L 66.8% C 0.191 H 304.1°. Best body text is #000000 at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#AF70F2
RGBrgb(175, 112, 242)
HSLhsl(269, 83%, 69%)
HSVhsv(269, 54%, 95%)
CMYKcmyk(27.7%, 53.7%, 0%, 5.1%)
CIE-LABlab(59.08, 49.50, -56.24)
CIE-LCHlch(59.08, 74.92, 311.35°)
OKLaboklab(66.8% 0.1071 -0.1584)
OKLCHoklch(66.8% 0.191 304.1)
XYZxyz(39.4969, 27.1132, 87.1398)
Luminance0.2711 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF70F2 #B3F270
analogous
#7072F2 #AF70F2 #F070F2
triadic
#AF70F2 #F2AF70 #70F2AF
tetradic
#AF70F2 #F27072 #B3F270 #70F2F0
square
#AF70F2 #F27072 #B3F270 #70F2F0
split-complementary
#AF70F2 #F2F070 #72F270
monochromatic
#7113D4 #9038ED #AF70F2 #CEA8F7 #EEE0FC

Accessibility & contrast

On white

3.27
#AF70F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.42
#AF70F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF70F2
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF70F2#FFFFFF#000000##000000
##AF70F21.003.276.426.42
#FFFFFF3.271.0021.0021.00
#0000006.4221.001.001.00
##0000006.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#428DF6
Deuteranopia (green-blind)
#578EEF
Tritanopia (blue-blind)
#A389A7
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #af70f2;
/* rgb */ color: rgb(175, 112, 242);
/* oklch */ color: oklch(66.8% 0.191 304.1);
Tailwind
colors: {
  custom: {
    50: '#ca9bf7',
    500: '#af70f2',
    950: '#000000',
  },
}
SCSS
$custom: #af70f2;
$custom-light: #ca9bf7;
$custom-dark: #000000;
JSON
{
  "hex": "#af70f2",
  "rgb": {
    "r": 175,
    "g": 112,
    "b": 242
  },
  "hsl": {
    "h": 269.077,
    "s": 83.333,
    "l": 69.412
  },
  "oklch": {
    "l": 0.66801,
    "c": 0.19127,
    "h": 304.1
  },
  "luminance": 0.27113
}

Semantic roles & 50–950 ramp

primary
#AF70F2
secondary
#DFF2CC
accent
#E00676
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF70F2

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

Preview Lab → · Contrast checker → · Palette generator →

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