#AF62FB#AF62FB

#AF62FB is a light, highly saturated violet. Relative luminance 0.248; OKLCH L 65.4% C 0.221 H 304.1°. Best body text is #000000 at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#AF62FB
RGBrgb(175, 98, 251)
HSLhsl(270, 95%, 68%)
HSVhsv(270, 61%, 98%)
CMYKcmyk(30.3%, 61%, 0%, 1.6%)
CIE-LABlab(56.89, 58.79, -64.73)
CIE-LCHlch(56.89, 87.44, 312.25°)
OKLaboklab(65.37% 0.124 -0.1833)
OKLCHoklch(65.37% 0.221 304.1)
XYZxyz(39.4556, 24.8145, 93.9592)
Luminance0.2481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF62FB #AEFB62
analogous
#6262FB #AF62FB #FB62FB
triadic
#AF62FB #FBAF62 #62FBAF
tetradic
#AF62FB #FB6262 #AEFB62 #62FBFB
square
#AF62FB #FB6262 #AEFB62 #62FBFB
split-complementary
#AF62FB #FBFB62 #62FB62
monochromatic
#7206DD #9126F9 #AF62FB #CD9EFD #ECD9FE

Accessibility & contrast

On white

3.52
#AF62FB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.96
#AF62FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF62FB
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF62FB#FFFFFF#000000##000000
##AF62FB1.003.525.965.96
#FFFFFF3.521.0021.0021.00
#0000005.9621.001.001.00
##0000005.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0087FF
Deuteranopia (green-blind)
#3A88F8
Tritanopia (blue-blind)
#A182A6
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #af62fb;
/* rgb */ color: rgb(175, 98, 251);
/* oklch */ color: oklch(65.4% 0.221 304.1);
Tailwind
colors: {
  custom: {
    50: '#cb92fd',
    500: '#af62fb',
    950: '#000000',
  },
}
SCSS
$custom: #af62fb;
$custom-light: #cb92fd;
$custom-dark: #000000;
JSON
{
  "hex": "#af62fb",
  "rgb": {
    "r": 175,
    "g": 98,
    "b": 251
  },
  "hsl": {
    "h": 270.196,
    "s": 95.031,
    "l": 68.431
  },
  "oklch": {
    "l": 0.65372,
    "c": 0.22133,
    "h": 304.1
  },
  "luminance": 0.24814
}

Semantic roles & 50–950 ramp

primary
#AF62FB
secondary
#DCF3C5
accent
#E60072
background
#FCF9FF
surface
#F9F1FF
border
#D2CBD7
text
#140D18
muted
#827E86

Preview Lab

Preview with #AF62FB

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

Preview Lab → · Contrast checker → · Palette generator →

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