#AF56F1#AF56F1

#AF56F1 is a light, highly saturated violet. Relative luminance 0.221; OKLCH L 63.2% C 0.227 H 307.5°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#AF56F1
RGBrgb(175, 86, 241)
HSLhsl(274, 85%, 64%)
HSVhsv(274, 64%, 95%)
CMYKcmyk(27.4%, 64.3%, 0%, 5.5%)
CIE-LABlab(54.16, 62.30, -63.58)
CIE-LCHlch(54.16, 89.01, 314.42°)
OKLaboklab(63.19% 0.1381 -0.1799)
OKLCHoklch(63.19% 0.227 307.5)
XYZxyz(36.8809, 22.1209, 85.5289)
Luminance0.2212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF56F1 #98F156
analogous
#6256F1 #AF56F1 #F156E5
triadic
#AF56F1 #F1AF56 #56F1AF
tetradic
#AF56F1 #F16256 #98F156 #56E5F1
square
#AF56F1 #F16256 #98F156 #56E5F1
split-complementary
#AF56F1 #E5F156 #56F162
monochromatic
#7310BD #941DEC #AF56F1 #CA8FF6 #E5C7FA

Accessibility & contrast

On white

3.87
#AF56F1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#AF56F1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF56F1
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF56F1#FFFFFF#000000##000000
##AF56F11.003.875.425.42
#FFFFFF3.871.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF6
Deuteranopia (green-blind)
#3682EE
Tritanopia (blue-blind)
#A5779C
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #af56f1;
/* rgb */ color: rgb(175, 86, 241);
/* oklch */ color: oklch(63.2% 0.227 307.5);
Tailwind
colors: {
  custom: {
    50: '#cb8bf6',
    500: '#af56f1',
    950: '#000000',
  },
}
SCSS
$custom: #af56f1;
$custom-light: #cb8bf6;
$custom-dark: #000000;
JSON
{
  "hex": "#af56f1",
  "rgb": {
    "r": 175,
    "g": 86,
    "b": 241
  },
  "hsl": {
    "h": 274.452,
    "s": 84.699,
    "l": 64.118
  },
  "oklch": {
    "l": 0.63192,
    "c": 0.22677,
    "h": 307.5
  },
  "luminance": 0.2212
}

Semantic roles & 50–950 ramp

primary
#AF56F1
secondary
#CDECB6
accent
#E10462
background
#FCF8FF
surface
#F9F0FF
border
#D2CBD7
text
#140C17
muted
#827D85

Preview Lab

Preview with #AF56F1

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

Preview Lab → · Contrast checker → · Palette generator →

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