#AF51E3#AF51E3

#AF51E3 is a mid, highly saturated violet. Relative luminance 0.205; OKLCH L 61.7% C 0.219 H 311.2°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#AF51E3
RGBrgb(175, 81, 227)
HSLhsl(279, 72%, 60%)
HSVhsv(279, 64%, 89%)
CMYKcmyk(22.9%, 64.3%, 0%, 11%)
CIE-LABlab(52.45, 61.58, -58.46)
CIE-LCHlch(52.45, 84.91, 316.49°)
OKLaboklab(61.68% 0.1445 -0.1648)
OKLCHoklch(61.68% 0.219 311.2)
XYZxyz(34.4842, 20.5457, 74.8073)
Luminance0.2054 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF51E3 #85E351
analogous
#6651E3 #AF51E3 #E351CE
triadic
#AF51E3 #E3AF51 #51E3AF
tetradic
#AF51E3 #E36651 #85E351 #51CEE3
square
#AF51E3 #E36651 #85E351 #51CEE3
split-complementary
#AF51E3 #CEE351 #51E366
monochromatic
#701AA0 #9522D5 #AF51E3 #C786EB #DFBAF4

Accessibility & contrast

On white

4.11
#AF51E3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#AF51E3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF51E3
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF51E3#FFFFFF#000000##000000
##AF51E31.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079E7
Deuteranopia (green-blind)
#417FE0
Tritanopia (blue-blind)
#A96E93
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #af51e3;
/* rgb */ color: rgb(175, 81, 227);
/* oklch */ color: oklch(61.7% 0.219 311.2);
Tailwind
colors: {
  custom: {
    50: '#cb88ec',
    500: '#af51e3',
    950: '#000000',
  },
}
SCSS
$custom: #af51e3;
$custom-light: #cb88ec;
$custom-dark: #000000;
JSON
{
  "hex": "#af51e3",
  "rgb": {
    "r": 175,
    "g": 81,
    "b": 227
  },
  "hsl": {
    "h": 278.63,
    "s": 72.277,
    "l": 60.392
  },
  "oklch": {
    "l": 0.61684,
    "c": 0.21923,
    "h": 311.2
  },
  "luminance": 0.20545
}

Semantic roles & 50–950 ramp

primary
#AF51E3
secondary
#C0E4AC
accent
#D41157
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF51E3

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

Preview Lab → · Contrast checker → · Palette generator →

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