#AF56EA#AF56EA

#AF56EA is a light, highly saturated violet. Relative luminance 0.217; OKLCH L 62.7% C 0.220 H 309.1°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#AF56EA
RGBrgb(175, 86, 234)
HSLhsl(276, 78%, 63%)
HSVhsv(276, 63%, 92%)
CMYKcmyk(25.2%, 63.2%, 0%, 8.2%)
CIE-LABlab(53.72, 60.77, -60.36)
CIE-LCHlch(53.72, 85.65, 315.19°)
OKLaboklab(62.74% 0.1385 -0.1704)
OKLCHoklch(62.74% 0.22 309.1)
XYZxyz(35.8553, 21.7107, 80.1277)
Luminance0.2171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF56EA #91EA56
analogous
#6556EA #AF56EA #EA56DB
triadic
#AF56EA #EAAF56 #56EAAF
tetradic
#AF56EA #EA6556 #91EA56 #56DBEA
square
#AF56EA #EA6556 #91EA56 #56DBEA
split-complementary
#AF56EA #DBEA56 #56EA65
monochromatic
#7216B0 #9520E3 #AF56EA #C98CF1 #E3C3F8

Accessibility & contrast

On white

3.93
#AF56EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#AF56EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF56EA
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF56EA#FFFFFF#000000##000000
##AF56EA1.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DEF
Deuteranopia (green-blind)
#3F82E7
Tritanopia (blue-blind)
#A77499
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #af56ea;
/* rgb */ color: rgb(175, 86, 234);
/* oklch */ color: oklch(62.7% 0.220 309.1);
Tailwind
colors: {
  custom: {
    50: '#cb8bf1',
    500: '#af56ea',
    950: '#000000',
  },
}
SCSS
$custom: #af56ea;
$custom-light: #cb8bf1;
$custom-dark: #000000;
JSON
{
  "hex": "#af56ea",
  "rgb": {
    "r": 175,
    "g": 86,
    "b": 234
  },
  "hsl": {
    "h": 276.081,
    "s": 77.895,
    "l": 62.745
  },
  "oklch": {
    "l": 0.62738,
    "c": 0.21963,
    "h": 309.1
  },
  "luminance": 0.2171
}

Semantic roles & 50–950 ramp

primary
#AF56EA
secondary
#C8E9B3
accent
#DA0B5E
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AF56EA

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

Preview Lab → · Contrast checker → · Palette generator →

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