#AF55FF#AF55FF

#AF55FF is a light, highly saturated violet. Relative luminance 0.228; OKLCH L 64.0% C 0.242 H 304.7°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#AF55FF
RGBrgb(175, 85, 255)
HSLhsl(272, 100%, 67%)
HSVhsv(272, 67%, 100%)
CMYKcmyk(31.4%, 66.7%, 0%, 0%)
CIE-LABlab(54.90, 65.87, -70.17)
CIE-LCHlch(54.90, 96.24, 313.19°)
OKLaboklab(64.01% 0.1378 -0.1992)
OKLCHoklch(64.01% 0.242 304.7)
XYZxyz(38.9736, 22.8312, 96.9420)
Luminance0.2283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF55FF #A5FF55
analogous
#5A55FF #AF55FF #FF55FA
triadic
#AF55FF #FFAF55 #55FFAF
tetradic
#AF55FF #FF5A55 #A5FF55 #55FAFF
square
#AF55FF #FF5A55 #A5FF55 #55FAFF
split-complementary
#AF55FF #FAFF55 #55FF5A
monochromatic
#7300DA #9218FF #AF55FF #CC92FF #E9CFFF

Accessibility & contrast

On white

3.77
#AF55FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#AF55FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF55FF
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF55FF#FFFFFF#000000##000000
##AF55FF1.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0081FF
Deuteranopia (green-blind)
#1583FB
Tritanopia (blue-blind)
#A07BA3
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #af55ff;
/* rgb */ color: rgb(175, 85, 255);
/* oklch */ color: oklch(64.0% 0.242 304.7);
Tailwind
colors: {
  custom: {
    50: '#cc8bff',
    500: '#af55ff',
    950: '#000000',
  },
}
SCSS
$custom: #af55ff;
$custom-light: #cc8bff;
$custom-dark: #000000;
JSON
{
  "hex": "#af55ff",
  "rgb": {
    "r": 175,
    "g": 85,
    "b": 255
  },
  "hsl": {
    "h": 271.765,
    "s": 100,
    "l": 66.667
  },
  "oklch": {
    "l": 0.64014,
    "c": 0.24227,
    "h": 304.7
  },
  "luminance": 0.22831
}

Semantic roles & 50–950 ramp

primary
#AF55FF
secondary
#D6F3BD
accent
#E6006C
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C18
muted
#837D86

Preview Lab

Preview with #AF55FF

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

Preview Lab → · Contrast checker → · Palette generator →

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