#AF5BE5#AF5BE5

#AF5BE5 is a light, highly saturated violet. Relative luminance 0.223; OKLCH L 63.1% C 0.208 H 309.8°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#AF5BE5
RGBrgb(175, 91, 229)
HSLhsl(277, 73%, 63%)
HSVhsv(277, 60%, 90%)
CMYKcmyk(23.6%, 60.3%, 0%, 10.2%)
CIE-LABlab(54.30, 57.29, -56.63)
CIE-LCHlch(54.30, 80.55, 315.33°)
OKLaboklab(63.06% 0.1329 -0.1595)
OKLCHoklch(63.06% 0.208 309.8)
XYZxyz(35.5604, 22.2539, 76.5357)
Luminance0.2225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5BE5 #91E55B
analogous
#6A5BE5 #AF5BE5 #E55BD6
triadic
#AF5BE5 #E5AF5B #5BE5AF
tetradic
#AF5BE5 #E56A5B #91E55B #5BD6E5
square
#AF5BE5 #E56A5B #91E55B #5BD6E5
split-complementary
#AF5BE5 #D6E55B #5BE56A
monochromatic
#721BAB #9526DD #AF5BE5 #C990ED #E3C5F6

Accessibility & contrast

On white

3.85
#AF5BE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#AF5BE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5BE5
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5BE5#FFFFFF#000000##000000
##AF5BE51.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#217EE9
Deuteranopia (green-blind)
#4A83E2
Tritanopia (blue-blind)
#A87598
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #af5be5;
/* rgb */ color: rgb(175, 91, 229);
/* oklch */ color: oklch(63.1% 0.208 309.8);
Tailwind
colors: {
  custom: {
    50: '#ca8eee',
    500: '#af5be5',
    950: '#000000',
  },
}
SCSS
$custom: #af5be5;
$custom-light: #ca8eee;
$custom-dark: #000000;
JSON
{
  "hex": "#af5be5",
  "rgb": {
    "r": 175,
    "g": 91,
    "b": 229
  },
  "hsl": {
    "h": 276.522,
    "s": 72.632,
    "l": 62.745
  },
  "oklch": {
    "l": 0.63059,
    "c": 0.2076,
    "h": 309.8
  },
  "luminance": 0.22253
}

Semantic roles & 50–950 ramp

primary
#AF5BE5
secondary
#C8E7B5
accent
#D5115D
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140D16
muted
#827D84

Preview Lab

Preview with #AF5BE5

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

Preview Lab → · Contrast checker → · Palette generator →

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