#AF51E8#AF51E8

#AF51E8 is a light, highly saturated violet. Relative luminance 0.208; OKLCH L 62.0% C 0.224 H 310.0°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#AF51E8
RGBrgb(175, 81, 232)
HSLhsl(277, 77%, 61%)
HSVhsv(277, 65%, 91%)
CMYKcmyk(24.6%, 65.1%, 0%, 9%)
CIE-LABlab(52.76, 62.64, -60.78)
CIE-LCHlch(52.76, 87.28, 315.86°)
OKLaboklab(62.01% 0.1442 -0.1716)
OKLCHoklch(62.01% 0.224 310)
XYZxyz(35.1843, 20.8257, 78.4946)
Luminance0.2082 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF51E8 #8AE851
analogous
#6451E8 #AF51E8 #E851D6
triadic
#AF51E8 #E8AF51 #51E8AF
tetradic
#AF51E8 #E86451 #8AE851 #51D6E8
square
#AF51E8 #E86451 #8AE851 #51D6E8
split-complementary
#AF51E8 #D6E851 #51E864
monochromatic
#7116A8 #961DDE #AF51E8 #C887EF #E1BDF6

Accessibility & contrast

On white

4.07
#AF51E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#AF51E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF51E8
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF51E8#FFFFFF#000000##000000
##AF51E81.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af51e8;
/* rgb */ color: rgb(175, 81, 232);
/* oklch */ color: oklch(62.0% 0.224 310.0);
Tailwind
colors: {
  custom: {
    50: '#cb88f0',
    500: '#af51e8',
    950: '#000000',
  },
}
SCSS
$custom: #af51e8;
$custom-light: #cb88f0;
$custom-dark: #000000;
JSON
{
  "hex": "#af51e8",
  "rgb": {
    "r": 175,
    "g": 81,
    "b": 232
  },
  "hsl": {
    "h": 277.351,
    "s": 76.65,
    "l": 61.373
  },
  "oklch": {
    "l": 0.62006,
    "c": 0.22419,
    "h": 310
  },
  "luminance": 0.20825
}

Semantic roles & 50–950 ramp

primary
#AF51E8
secondary
#C3E7AE
accent
#D90D5A
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AF51E8

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

Preview Lab → · Contrast checker → · Palette generator →

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