#AF5BE2#AF5BE2

#AF5BE2 is a light, highly saturated violet. Relative luminance 0.221; OKLCH L 62.9% C 0.204 H 310.5°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#AF5BE2
RGBrgb(175, 91, 226)
HSLhsl(277, 70%, 62%)
HSVhsv(277, 60%, 89%)
CMYKcmyk(22.6%, 59.7%, 0%, 11.4%)
CIE-LABlab(54.12, 56.64, -55.22)
CIE-LCHlch(54.12, 79.10, 315.73°)
OKLaboklab(62.88% 0.1329 -0.1554)
OKLCHoklch(62.88% 0.204 310.5)
XYZxyz(35.1452, 22.0878, 74.3487)
Luminance0.2209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5BE2 #8EE25B
analogous
#6B5BE2 #AF5BE2 #E25BD2
triadic
#AF5BE2 #E2AF5B #5BE2AF
tetradic
#AF5BE2 #E26B5B #8EE25B #5BD2E2
square
#AF5BE2 #E26B5B #8EE25B #5BD2E2
split-complementary
#AF5BE2 #D2E25B #5BE26B
monochromatic
#721DA5 #9627D9 #AF5BE2 #C88FEB #E2C3F4

Accessibility & contrast

On white

3.88
#AF5BE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#AF5BE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5BE2
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5BE2#FFFFFF#000000##000000
##AF5BE21.003.885.425.42
#FFFFFF3.881.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#267DE6
Deuteranopia (green-blind)
#4D83DF
Tritanopia (blue-blind)
#A97496
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #af5be2;
/* rgb */ color: rgb(175, 91, 226);
/* oklch */ color: oklch(62.9% 0.204 310.5);
Tailwind
colors: {
  custom: {
    50: '#ca8dec',
    500: '#af5be2',
    950: '#000000',
  },
}
SCSS
$custom: #af5be2;
$custom-light: #ca8dec;
$custom-dark: #000000;
JSON
{
  "hex": "#af5be2",
  "rgb": {
    "r": 175,
    "g": 91,
    "b": 226
  },
  "hsl": {
    "h": 277.333,
    "s": 69.948,
    "l": 62.157
  },
  "oklch": {
    "l": 0.62875,
    "c": 0.20445,
    "h": 310.5
  },
  "luminance": 0.22087
}

Semantic roles & 50–950 ramp

primary
#AF5BE2
secondary
#C6E5B4
accent
#D2145B
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140D16
muted
#827D84

Preview Lab

Preview with #AF5BE2

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

Preview Lab → · Contrast checker → · Palette generator →

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