#AF50DF#AF50DF

#AF50DF is a mid, highly saturated violet. Relative luminance 0.202; OKLCH L 61.3% C 0.217 H 312.3°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#AF50DF
RGBrgb(175, 80, 223)
HSLhsl(280, 69%, 59%)
HSVhsv(280, 64%, 87%)
CMYKcmyk(21.5%, 64.1%, 0%, 12.5%)
CIE-LABlab(52.04, 61.19, -56.86)
CIE-LCHlch(52.04, 83.53, 317.10°)
OKLaboklab(61.31% 0.1459 -0.1601)
OKLCHoklch(61.31% 0.217 312.3)
XYZxyz(33.8648, 20.1799, 71.9089)
Luminance0.2018 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF50DF #80DF50
analogous
#6850DF #AF50DF #DF50C8
triadic
#AF50DF #DFAF50 #50DFAF
tetradic
#AF50DF #DF6850 #80DF50 #50C8DF
square
#AF50DF #DF6850 #80DF50 #50C8DF
split-complementary
#AF50DF #C8DF50 #50DF68
monochromatic
#6F1C99 #9425CC #AF50DF #C784E8 #DEB7F2

Accessibility & contrast

On white

4.17
#AF50DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#AF50DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF50DF
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF50DF#FFFFFF#000000##000000
##AF50DF1.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077E3
Deuteranopia (green-blind)
#447EDC
Tritanopia (blue-blind)
#AA6C91
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #af50df;
/* rgb */ color: rgb(175, 80, 223);
/* oklch */ color: oklch(61.3% 0.217 312.3);
Tailwind
colors: {
  custom: {
    50: '#cb87ea',
    500: '#af50df',
    950: '#000000',
  },
}
SCSS
$custom: #af50df;
$custom-light: #cb87ea;
$custom-dark: #000000;
JSON
{
  "hex": "#af50df",
  "rgb": {
    "r": 175,
    "g": 80,
    "b": 223
  },
  "hsl": {
    "h": 279.86,
    "s": 69.082,
    "l": 59.412
  },
  "oklch": {
    "l": 0.61312,
    "c": 0.2166,
    "h": 312.3
  },
  "luminance": 0.20179
}

Semantic roles & 50–950 ramp

primary
#AF50DF
secondary
#BCE1AA
accent
#EC3C77
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF50DF

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

Preview Lab → · Contrast checker → · Palette generator →

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