#AF56E7#AF56E7

#AF56E7 is a light, highly saturated violet. Relative luminance 0.215; OKLCH L 62.5% C 0.217 H 309.8°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#AF56E7
RGBrgb(175, 86, 231)
HSLhsl(277, 75%, 62%)
HSVhsv(277, 63%, 91%)
CMYKcmyk(24.2%, 62.8%, 0%, 9.4%)
CIE-LABlab(53.54, 60.12, -58.97)
CIE-LCHlch(53.54, 84.21, 315.55°)
OKLaboklab(62.55% 0.1387 -0.1664)
OKLCHoklch(62.55% 0.217 309.8)
XYZxyz(35.4280, 21.5397, 77.8771)
Luminance0.2154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF56E7 #8EE756
analogous
#6756E7 #AF56E7 #E756D6
triadic
#AF56E7 #E7AF56 #56E7AF
tetradic
#AF56E7 #E76756 #8EE756 #56D6E7
square
#AF56E7 #E76756 #8EE756 #56D6E7
split-complementary
#AF56E7 #D6E756 #56E767
monochromatic
#7218AA #9620DF #AF56E7 #C88CEF #E2C1F6

Accessibility & contrast

On white

3.96
#AF56E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#AF56E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF56E7
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF56E7#FFFFFF#000000##000000
##AF56E71.003.965.315.31
#FFFFFF3.961.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CEB
Deuteranopia (green-blind)
#4381E4
Tritanopia (blue-blind)
#A77397
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #af56e7;
/* rgb */ color: rgb(175, 86, 231);
/* oklch */ color: oklch(62.5% 0.217 309.8);
Tailwind
colors: {
  custom: {
    50: '#cb8bef',
    500: '#af56e7',
    950: '#000000',
  },
}
SCSS
$custom: #af56e7;
$custom-light: #cb8bef;
$custom-dark: #000000;
JSON
{
  "hex": "#af56e7",
  "rgb": {
    "r": 175,
    "g": 86,
    "b": 231
  },
  "hsl": {
    "h": 276.828,
    "s": 75.13,
    "l": 62.157
  },
  "oklch": {
    "l": 0.62547,
    "c": 0.21657,
    "h": 309.8
  },
  "luminance": 0.21539
}

Semantic roles & 50–950 ramp

primary
#AF56E7
secondary
#C6E7B2
accent
#D70E5C
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AF56E7

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

Preview Lab → · Contrast checker → · Palette generator →

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