#AF56FF#AF56FF

#AF56FF is a light, highly saturated violet. Relative luminance 0.230; OKLCH L 64.1% C 0.241 H 304.6°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#AF56FF
RGBrgb(175, 86, 255)
HSLhsl(272, 100%, 67%)
HSVhsv(272, 66%, 100%)
CMYKcmyk(31.4%, 66.3%, 0%, 0%)
CIE-LABlab(55.06, 65.41, -69.90)
CIE-LCHlch(55.06, 95.73, 313.10°)
OKLaboklab(64.13% 0.1368 -0.1985)
OKLCHoklch(64.13% 0.241 304.6)
XYZxyz(39.0529, 22.9897, 96.9684)
Luminance0.2299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF56FF #A6FF56
analogous
#5B56FF #AF56FF #FF56FA
triadic
#AF56FF #FFAF56 #56FFAF
tetradic
#AF56FF #FF5B56 #A6FF56 #56FAFF
square
#AF56FF #FF5B56 #A6FF56 #56FAFF
split-complementary
#AF56FF #FAFF56 #56FF5B
monochromatic
#7300DB #9219FF #AF56FF #CC93FF #E9D0FF

Accessibility & contrast

On white

3.75
#AF56FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#AF56FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF56FF
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF56FF#FFFFFF#000000##000000
##AF56FF1.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0082FF
Deuteranopia (green-blind)
#1984FB
Tritanopia (blue-blind)
#A07CA4
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #af56ff;
/* rgb */ color: rgb(175, 86, 255);
/* oklch */ color: oklch(64.1% 0.241 304.6);
Tailwind
colors: {
  custom: {
    50: '#cc8bff',
    500: '#af56ff',
    950: '#000000',
  },
}
SCSS
$custom: #af56ff;
$custom-light: #cc8bff;
$custom-dark: #000000;
JSON
{
  "hex": "#af56ff",
  "rgb": {
    "r": 175,
    "g": 86,
    "b": 255
  },
  "hsl": {
    "h": 271.598,
    "s": 100,
    "l": 66.863
  },
  "oklch": {
    "l": 0.64131,
    "c": 0.24105,
    "h": 304.6
  },
  "luminance": 0.2299
}

Semantic roles & 50–950 ramp

primary
#AF56FF
secondary
#D7F3BD
accent
#E6006D
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C18
muted
#837D86

Preview Lab

Preview with #AF56FF

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

Preview Lab → · Contrast checker → · Palette generator →

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