#AF56F2#AF56F2

#AF56F2 is a light, highly saturated violet. Relative luminance 0.222; OKLCH L 63.3% C 0.228 H 307.3°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#AF56F2
RGBrgb(175, 86, 242)
HSLhsl(274, 86%, 64%)
HSVhsv(274, 64%, 95%)
CMYKcmyk(27.7%, 64.5%, 0%, 5.1%)
CIE-LABlab(54.22, 62.52, -64.04)
CIE-LCHlch(54.22, 89.49, 314.31°)
OKLaboklab(63.26% 0.138 -0.1812)
OKLCHoklch(63.26% 0.228 307.3)
XYZxyz(37.0306, 22.1808, 86.3177)
Luminance0.2218 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF56F2 #99F256
analogous
#6156F2 #AF56F2 #F256E7
triadic
#AF56F2 #F2AF56 #56F2AF
tetradic
#AF56F2 #F26156 #99F256 #56E7F2
square
#AF56F2 #F26156 #99F256 #56E7F2
split-complementary
#AF56F2 #E7F256 #56F261
monochromatic
#730FBF #941DEE #AF56F2 #CA8FF6 #E5C8FB

Accessibility & contrast

On white

3.86
#AF56F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#AF56F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF56F2
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF56F2#FFFFFF#000000##000000
##AF56F21.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF7
Deuteranopia (green-blind)
#3582EF
Tritanopia (blue-blind)
#A4779D
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #af56f2;
/* rgb */ color: rgb(175, 86, 242);
/* oklch */ color: oklch(63.3% 0.228 307.3);
Tailwind
colors: {
  custom: {
    50: '#cb8bf7',
    500: '#af56f2',
    950: '#000000',
  },
}
SCSS
$custom: #af56f2;
$custom-light: #cb8bf7;
$custom-dark: #000000;
JSON
{
  "hex": "#af56f2",
  "rgb": {
    "r": 175,
    "g": 86,
    "b": 242
  },
  "hsl": {
    "h": 274.231,
    "s": 85.714,
    "l": 64.314
  },
  "oklch": {
    "l": 0.63258,
    "c": 0.2278,
    "h": 307.3
  },
  "luminance": 0.2218
}

Semantic roles & 50–950 ramp

primary
#AF56F2
secondary
#CEEDB7
accent
#E20363
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C17
muted
#837D85

Preview Lab

Preview with #AF56F2

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

Preview Lab → · Contrast checker → · Palette generator →

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