#AF5BE6#AF5BE6

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

Color values

HEX#AF5BE6
RGBrgb(175, 91, 230)
HSLhsl(276, 74%, 63%)
HSVhsv(276, 60%, 90%)
CMYKcmyk(23.9%, 60.4%, 0%, 9.8%)
CIE-LABlab(54.35, 57.51, -57.10)
CIE-LCHlch(54.35, 81.04, 315.20°)
OKLaboklab(63.12% 0.1328 -0.1609)
OKLCHoklch(63.12% 0.209 309.5)
XYZxyz(35.7004, 22.3099, 77.2731)
Luminance0.2231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5BE6 #92E65B
analogous
#695BE6 #AF5BE6 #E65BD7
triadic
#AF5BE6 #E6AF5B #5BE6AF
tetradic
#AF5BE6 #E6695B #92E65B #5BD7E6
square
#AF5BE6 #E6695B #92E65B #5BD7E6
split-complementary
#AF5BE6 #D7E65B #5BE669
monochromatic
#731AAC #9526DE #AF5BE6 #C990EE #E3C5F6

Accessibility & contrast

On white

3.84
#AF5BE6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.46
#AF5BE6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5BE6
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5BE6#FFFFFF#000000##000000
##AF5BE61.003.845.465.46
#FFFFFF3.841.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#1E7EEA
Deuteranopia (green-blind)
#4983E3
Tritanopia (blue-blind)
#A77698
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #af5be6;
/* rgb */ color: rgb(175, 91, 230);
/* oklch */ color: oklch(63.1% 0.209 309.5);
Tailwind
colors: {
  custom: {
    50: '#ca8eef',
    500: '#af5be6',
    950: '#000000',
  },
}
SCSS
$custom: #af5be6;
$custom-light: #ca8eef;
$custom-dark: #000000;
JSON
{
  "hex": "#af5be6",
  "rgb": {
    "r": 175,
    "g": 91,
    "b": 230
  },
  "hsl": {
    "h": 276.259,
    "s": 73.545,
    "l": 62.941
  },
  "oklch": {
    "l": 0.63121,
    "c": 0.20864,
    "h": 309.5
  },
  "luminance": 0.22309
}

Semantic roles & 50–950 ramp

primary
#AF5BE6
secondary
#C9E7B5
accent
#D6105E
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140D16
muted
#827D84

Preview Lab

Preview with #AF5BE6

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

Preview Lab → · Contrast checker → · Palette generator →

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