#AF51F2#AF51F2

#AF51F2 is a light, highly saturated violet. Relative luminance 0.214; OKLCH L 62.7% C 0.234 H 307.8°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#AF51F2
RGBrgb(175, 81, 242)
HSLhsl(275, 86%, 63%)
HSVhsv(275, 67%, 95%)
CMYKcmyk(27.7%, 66.5%, 0%, 5.1%)
CIE-LABlab(53.40, 64.79, -65.36)
CIE-LCHlch(53.40, 92.04, 314.75°)
OKLaboklab(62.67% 0.1434 -0.1851)
OKLCHoklch(62.67% 0.234 307.8)
XYZxyz(36.6453, 21.4101, 86.1893)
Luminance0.2141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF51F2 #94F251
analogous
#5E51F2 #AF51F2 #F251E4
triadic
#AF51F2 #F2AF51 #51F2AF
tetradic
#AF51F2 #F25E51 #94F251 #51E4F2
square
#AF51F2 #F25E51 #94F251 #51E4F2
split-complementary
#AF51F2 #E4F251 #51F25E
monochromatic
#730EBB #9518EE #AF51F2 #C98AF6 #E3C3FB

Accessibility & contrast

On white

3.98
#AF51F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#AF51F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF51F2
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF51F2#FFFFFF#000000##000000
##AF51F21.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF7
Deuteranopia (green-blind)
#2D80EE
Tritanopia (blue-blind)
#A4749B
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #af51f2;
/* rgb */ color: rgb(175, 81, 242);
/* oklch */ color: oklch(62.7% 0.234 307.8);
Tailwind
colors: {
  custom: {
    50: '#cc88f7',
    500: '#af51f2',
    950: '#000000',
  },
}
SCSS
$custom: #af51f2;
$custom-light: #cc88f7;
$custom-dark: #000000;
JSON
{
  "hex": "#af51f2",
  "rgb": {
    "r": 175,
    "g": 81,
    "b": 242
  },
  "hsl": {
    "h": 275.031,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.62667,
    "c": 0.23414,
    "h": 307.8
  },
  "luminance": 0.2141
}

Semantic roles & 50–950 ramp

primary
#AF51F2
secondary
#CBECB3
accent
#E30360
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C17
muted
#837D85

Preview Lab

Preview with #AF51F2

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

Preview Lab → · Contrast checker → · Palette generator →

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