#AF51F6#AF51F6

#AF51F6 is a light, highly saturated violet. Relative luminance 0.217; OKLCH L 62.9% C 0.238 H 306.9°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#AF51F6
RGBrgb(175, 81, 246)
HSLhsl(274, 90%, 64%)
HSVhsv(274, 67%, 96%)
CMYKcmyk(28.9%, 67.1%, 0%, 3.5%)
CIE-LABlab(53.66, 65.67, -67.17)
CIE-LCHlch(53.66, 93.94, 314.35°)
OKLaboklab(62.94% 0.143 -0.1904)
OKLCHoklch(62.94% 0.238 306.9)
XYZxyz(37.2526, 21.6531, 89.3879)
Luminance0.2165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF51F6 #98F651
analogous
#5D51F6 #AF51F6 #F651EA
triadic
#AF51F6 #F6AF51 #51F6AF
tetradic
#AF51F6 #F65D51 #98F651 #51EAF6
square
#AF51F6 #F65D51 #98F651 #51EAF6
split-complementary
#AF51F6 #EAF651 #51F65D
monochromatic
#730AC3 #9417F3 #AF51F6 #CA8BF9 #E5C5FC

Accessibility & contrast

On white

3.94
#AF51F6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#AF51F6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF51F6
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF51F6#FFFFFF#000000##000000
##AF51F61.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DFB
Deuteranopia (green-blind)
#2581F2
Tritanopia (blue-blind)
#A3759D
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #af51f6;
/* rgb */ color: rgb(175, 81, 246);
/* oklch */ color: oklch(62.9% 0.238 306.9);
Tailwind
colors: {
  custom: {
    50: '#cc88fa',
    500: '#af51f6',
    950: '#000000',
  },
}
SCSS
$custom: #af51f6;
$custom-light: #cc88fa;
$custom-dark: #000000;
JSON
{
  "hex": "#af51f6",
  "rgb": {
    "r": 175,
    "g": 81,
    "b": 246
  },
  "hsl": {
    "h": 274.182,
    "s": 90.164,
    "l": 64.118
  },
  "oklch": {
    "l": 0.62937,
    "c": 0.23812,
    "h": 306.9
  },
  "luminance": 0.21653
}

Semantic roles & 50–950 ramp

primary
#AF51F6
secondary
#CDEEB5
accent
#E60063
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C17
muted
#837D85

Preview Lab

Preview with #AF51F6

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

Preview Lab → · Contrast checker → · Palette generator →

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