#AF33FF#AF33FF

#AF33FF is a mid, highly saturated violet. Relative luminance 0.187; OKLCH L 60.8% C 0.277 H 307.1°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#AF33FF
RGBrgb(175, 51, 255)
HSLhsl(276, 100%, 60%)
HSVhsv(276, 80%, 100%)
CMYKcmyk(31.4%, 80%, 0%, 0%)
CIE-LABlab(50.34, 78.85, -77.57)
CIE-LCHlch(50.34, 110.61, 315.47°)
OKLaboklab(60.79% 0.1671 -0.2208)
OKLCHoklch(60.79% 0.277 307.1)
XYZxyz(36.9091, 18.7021, 96.2538)
Luminance0.1870 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF33FF #83FF33
analogous
#4933FF #AF33FF #FF33E9
triadic
#AF33FF #FFAF33 #33FFAF
tetradic
#AF33FF #FF4933 #83FF33 #33E9FF
square
#AF33FF #FF4933 #83FF33 #33E9FF
split-complementary
#AF33FF #E9FF33 #33FF49
monochromatic
#7000B8 #9500F5 #AF33FF #C770FF #DFADFF

Accessibility & contrast

On white

4.43
#AF33FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#AF33FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF33FF
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF33FF#FFFFFF#000000##000000
##AF33FF1.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074FF
Deuteranopia (green-blind)
#0079FB
Tritanopia (blue-blind)
#A16A9B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #af33ff;
/* rgb */ color: rgb(175, 51, 255);
/* oklch */ color: oklch(60.8% 0.277 307.1);
Tailwind
colors: {
  custom: {
    50: '#ce7aff',
    500: '#af33ff',
    950: '#000000',
  },
}
SCSS
$custom: #af33ff;
$custom-light: #ce7aff;
$custom-dark: #000000;
JSON
{
  "hex": "#af33ff",
  "rgb": {
    "r": 175,
    "g": 51,
    "b": 255
  },
  "hsl": {
    "h": 276.471,
    "s": 100,
    "l": 60
  },
  "oklch": {
    "l": 0.60793,
    "c": 0.27691,
    "h": 307.1
  },
  "luminance": 0.18702
}

Semantic roles & 50–950 ramp

primary
#AF33FF
secondary
#BEEEA0
accent
#FF297D
background
#FDF8FF
surface
#FAEFFF
border
#D3CAD7
text
#150A18
muted
#837C86

Preview Lab

Preview with #AF33FF

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

Preview Lab → · Contrast checker → · Palette generator →

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