#AF55E7#AF55E7

#AF55E7 is a light, highly saturated violet. Relative luminance 0.214; OKLCH L 62.4% C 0.218 H 309.9°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#AF55E7
RGBrgb(175, 85, 231)
HSLhsl(277, 75%, 62%)
HSVhsv(277, 63%, 91%)
CMYKcmyk(24.2%, 63.2%, 0%, 9.4%)
CIE-LABlab(53.36, 60.58, -59.25)
CIE-LCHlch(53.36, 84.74, 315.64°)
OKLaboklab(62.42% 0.1398 -0.1672)
OKLCHoklch(62.42% 0.218 309.9)
XYZxyz(35.3487, 21.3812, 77.8506)
Luminance0.2138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF55E7 #8DE755
analogous
#6655E7 #AF55E7 #E755D6
triadic
#AF55E7 #E7AF55 #55E7AF
tetradic
#AF55E7 #E76655 #8DE755 #55D6E7
square
#AF55E7 #E76655 #8DE755 #55D6E7
split-complementary
#AF55E7 #D6E755 #55E766
monochromatic
#7218AA #9620DF #AF55E7 #C88BEF #E1C0F6

Accessibility & contrast

On white

3.98
#AF55E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#AF55E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF55E7
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF55E7#FFFFFF#000000##000000
##AF55E71.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BEB
Deuteranopia (green-blind)
#4181E4
Tritanopia (blue-blind)
#A77297
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #af55e7;
/* rgb */ color: rgb(175, 85, 231);
/* oklch */ color: oklch(62.4% 0.218 309.9);
Tailwind
colors: {
  custom: {
    50: '#cb8aef',
    500: '#af55e7',
    950: '#000000',
  },
}
SCSS
$custom: #af55e7;
$custom-light: #cb8aef;
$custom-dark: #000000;
JSON
{
  "hex": "#af55e7",
  "rgb": {
    "r": 175,
    "g": 85,
    "b": 231
  },
  "hsl": {
    "h": 276.986,
    "s": 75.258,
    "l": 61.961
  },
  "oklch": {
    "l": 0.62423,
    "c": 0.21791,
    "h": 309.9
  },
  "luminance": 0.2138
}

Semantic roles & 50–950 ramp

primary
#AF55E7
secondary
#C6E7B1
accent
#D70E5B
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AF55E7

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

Preview Lab → · Contrast checker → · Palette generator →

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