#AF51F7#AF51F7

#AF51F7 is a light, highly saturated violet. Relative luminance 0.217; OKLCH L 63.0% C 0.239 H 306.7°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#AF51F7
RGBrgb(175, 81, 247)
HSLhsl(274, 91%, 64%)
HSVhsv(274, 67%, 97%)
CMYKcmyk(29.1%, 67.2%, 0%, 3.1%)
CIE-LABlab(53.72, 65.89, -67.62)
CIE-LCHlch(53.72, 94.41, 314.25°)
OKLaboklab(63.01% 0.1429 -0.1917)
OKLCHoklch(63.01% 0.239 306.7)
XYZxyz(37.4065, 21.7146, 90.1984)
Luminance0.2171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF51F7 #99F751
analogous
#5C51F7 #AF51F7 #F751EC
triadic
#AF51F7 #F7AF51 #51F7AF
tetradic
#AF51F7 #F75C51 #99F751 #51ECF7
square
#AF51F7 #F75C51 #99F751 #51ECF7
split-complementary
#AF51F7 #ECF751 #51F75C
monochromatic
#7309C5 #9416F4 #AF51F7 #CA8CFA #E5C6FC

Accessibility & contrast

On white

3.93
#AF51F7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#AF51F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF51F7
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF51F7#FFFFFF#000000##000000
##AF51F71.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DFC
Deuteranopia (green-blind)
#2281F3
Tritanopia (blue-blind)
#A3769E
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #af51f7;
/* rgb */ color: rgb(175, 81, 247);
/* oklch */ color: oklch(63.0% 0.239 306.7);
Tailwind
colors: {
  custom: {
    50: '#cc88fb',
    500: '#af51f7',
    950: '#000000',
  },
}
SCSS
$custom: #af51f7;
$custom-light: #cc88fb;
$custom-dark: #000000;
JSON
{
  "hex": "#af51f7",
  "rgb": {
    "r": 175,
    "g": 81,
    "b": 247
  },
  "hsl": {
    "h": 273.976,
    "s": 91.209,
    "l": 64.314
  },
  "oklch": {
    "l": 0.63005,
    "c": 0.23911,
    "h": 306.7
  },
  "luminance": 0.21714
}

Semantic roles & 50–950 ramp

primary
#AF51F7
secondary
#CEEFB5
accent
#E60064
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C17
muted
#837D85

Preview Lab

Preview with #AF51F7

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

Preview Lab → · Contrast checker → · Palette generator →

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