#AF50FF#AF50FF

#AF50FF is a light, highly saturated violet. Relative luminance 0.221; OKLCH L 63.4% C 0.248 H 305.1°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#AF50FF
RGBrgb(175, 80, 255)
HSLhsl(273, 100%, 66%)
HSVhsv(273, 69%, 100%)
CMYKcmyk(31.4%, 68.6%, 0%, 0%)
CIE-LABlab(54.10, 68.08, -71.45)
CIE-LCHlch(54.10, 98.70, 313.62°)
OKLaboklab(63.45% 0.1429 -0.203)
OKLCHoklch(63.45% 0.248 305.1)
XYZxyz(38.5938, 22.0715, 96.8154)
Luminance0.2207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF50FF #A0FF50
analogous
#5750FF #AF50FF #FF50F8
triadic
#AF50FF #FFAF50 #50FFAF
tetradic
#AF50FF #FF5750 #A0FF50 #50F8FF
square
#AF50FF #FF5750 #A0FF50 #50F8FF
split-complementary
#AF50FF #F8FF50 #50FF57
monochromatic
#7300D5 #9313FF #AF50FF #CB8DFF #E7CAFF

Accessibility & contrast

On white

3.88
#AF50FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#AF50FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF50FF
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF50FF#FFFFFF#000000##000000
##AF50FF1.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FFF
Deuteranopia (green-blind)
#0082FB
Tritanopia (blue-blind)
#A078A2
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #af50ff;
/* rgb */ color: rgb(175, 80, 255);
/* oklch */ color: oklch(63.4% 0.248 305.1);
Tailwind
colors: {
  custom: {
    50: '#cc88ff',
    500: '#af50ff',
    950: '#000000',
  },
}
SCSS
$custom: #af50ff;
$custom-light: #cc88ff;
$custom-dark: #000000;
JSON
{
  "hex": "#af50ff",
  "rgb": {
    "r": 175,
    "g": 80,
    "b": 255
  },
  "hsl": {
    "h": 272.571,
    "s": 100,
    "l": 65.686
  },
  "oklch": {
    "l": 0.63446,
    "c": 0.24824,
    "h": 305.1
  },
  "luminance": 0.22071
}

Semantic roles & 50–950 ramp

primary
#AF50FF
secondary
#D3F3B8
accent
#E60069
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C18
muted
#837D86

Preview Lab

Preview with #AF50FF

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

Preview Lab → · Contrast checker → · Palette generator →

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