#AF51E9#AF51E9

#AF51E9 is a light, highly saturated violet. Relative luminance 0.209; OKLCH L 62.1% C 0.225 H 309.8°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#AF51E9
RGBrgb(175, 81, 233)
HSLhsl(277, 78%, 62%)
HSVhsv(277, 65%, 91%)
CMYKcmyk(24.9%, 65.2%, 0%, 8.6%)
CIE-LABlab(52.82, 62.85, -61.24)
CIE-LCHlch(52.82, 87.76, 315.74°)
OKLaboklab(62.07% 0.1442 -0.173)
OKLCHoklch(62.07% 0.225 309.8)
XYZxyz(35.3267, 20.8827, 79.2448)
Luminance0.2088 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF51E9 #8BE951
analogous
#6351E9 #AF51E9 #E951D7
triadic
#AF51E9 #E9AF51 #51E9AF
tetradic
#AF51E9 #E96351 #8BE951 #51D7E9
square
#AF51E9 #E96351 #8BE951 #51D7E9
split-complementary
#AF51E9 #D7E951 #51E963
monochromatic
#7116AA #961CE0 #AF51E9 #C887F0 #E1BEF7

Accessibility & contrast

On white

4.06
#AF51E9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#AF51E9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF51E9
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF51E9#FFFFFF#000000##000000
##AF51E91.004.065.185.18
#FFFFFF4.061.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AEE
Deuteranopia (green-blind)
#3A7FE6
Tritanopia (blue-blind)
#A77096
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #af51e9;
/* rgb */ color: rgb(175, 81, 233);
/* oklch */ color: oklch(62.1% 0.225 309.8);
Tailwind
colors: {
  custom: {
    50: '#cb88f1',
    500: '#af51e9',
    950: '#000000',
  },
}
SCSS
$custom: #af51e9;
$custom-light: #cb88f1;
$custom-dark: #000000;
JSON
{
  "hex": "#af51e9",
  "rgb": {
    "r": 175,
    "g": 81,
    "b": 233
  },
  "hsl": {
    "h": 277.105,
    "s": 77.551,
    "l": 61.569
  },
  "oklch": {
    "l": 0.62071,
    "c": 0.22519,
    "h": 309.8
  },
  "luminance": 0.20882
}

Semantic roles & 50–950 ramp

primary
#AF51E9
secondary
#C4E7AF
accent
#DA0C5A
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AF51E9

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

Preview Lab → · Contrast checker → · Palette generator →

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