#AF51F0#AF51F0

#AF51F0 is a light, highly saturated violet. Relative luminance 0.213; OKLCH L 62.5% C 0.232 H 308.2°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#AF51F0
RGBrgb(175, 81, 240)
HSLhsl(275, 84%, 63%)
HSVhsv(275, 66%, 94%)
CMYKcmyk(27.1%, 66.3%, 0%, 5.9%)
CIE-LABlab(53.27, 64.36, -64.45)
CIE-LCHlch(53.27, 91.08, 314.96°)
OKLaboklab(62.53% 0.1436 -0.1824)
OKLCHoklch(62.53% 0.232 308.2)
XYZxyz(36.3466, 21.2906, 84.6159)
Luminance0.2129 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF51F0 #92F051
analogous
#6051F0 #AF51F0 #F051E1
triadic
#AF51F0 #F0AF51 #51F0AF
tetradic
#AF51F0 #F06051 #92F051 #51E1F0
square
#AF51F0 #F06051 #92F051 #51E1F0
split-complementary
#AF51F0 #E1F051 #51F060
monochromatic
#7310B7 #9519EB #AF51F0 #C989F5 #E3C2FA

Accessibility & contrast

On white

3.99
#AF51F0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.26
#AF51F0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF51F0
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF51F0#FFFFFF#000000##000000
##AF51F01.003.995.265.26
#FFFFFF3.991.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF5
Deuteranopia (green-blind)
#3080EC
Tritanopia (blue-blind)
#A5739A
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #af51f0;
/* rgb */ color: rgb(175, 81, 240);
/* oklch */ color: oklch(62.5% 0.232 308.2);
Tailwind
colors: {
  custom: {
    50: '#cb88f6',
    500: '#af51f0',
    950: '#000000',
  },
}
SCSS
$custom: #af51f0;
$custom-light: #cb88f6;
$custom-dark: #000000;
JSON
{
  "hex": "#af51f0",
  "rgb": {
    "r": 175,
    "g": 81,
    "b": 240
  },
  "hsl": {
    "h": 275.472,
    "s": 84.127,
    "l": 62.941
  },
  "oklch": {
    "l": 0.62533,
    "c": 0.23215,
    "h": 308.2
  },
  "luminance": 0.2129
}

Semantic roles & 50–950 ramp

primary
#AF51F0
secondary
#C9EBB2
accent
#E1055F
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C17
muted
#837D85

Preview Lab

Preview with #AF51F0

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

Preview Lab → · Contrast checker → · Palette generator →

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