#AF5BF4#AF5BF4

#AF5BF4 is a light, highly saturated violet. Relative luminance 0.231; OKLCH L 64.0% C 0.223 H 306.3°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#AF5BF4
RGBrgb(175, 91, 244)
HSLhsl(273, 87%, 66%)
HSVhsv(273, 63%, 96%)
CMYKcmyk(28.3%, 62.7%, 0%, 4.3%)
CIE-LABlab(55.20, 60.61, -63.56)
CIE-LCHlch(55.20, 87.83, 313.64°)
OKLaboklab(64.01% 0.1323 -0.1799)
OKLCHoklch(64.01% 0.223 306.3)
XYZxyz(37.7459, 23.1281, 88.0461)
Luminance0.2313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5BF4 #A0F45B
analogous
#625BF4 #AF5BF4 #F45BED
triadic
#AF5BF4 #F4AF5B #5BF4AF
tetradic
#AF5BF4 #F4625B #A0F45B #5BEDF4
square
#AF5BF4 #F4625B #A0F45B #5BEDF4
split-complementary
#AF5BF4 #EDF45B #5BF462
monochromatic
#730DC7 #9322F0 #AF5BF4 #CB94F8 #E7CEFC

Accessibility & contrast

On white

3.73
#AF5BF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#AF5BF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5BF4
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5BF4#FFFFFF#000000##000000
##AF5BF41.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0081F9
Deuteranopia (green-blind)
#3985F1
Tritanopia (blue-blind)
#A37BA0
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #af5bf4;
/* rgb */ color: rgb(175, 91, 244);
/* oklch */ color: oklch(64.0% 0.223 306.3);
Tailwind
colors: {
  custom: {
    50: '#cb8ef9',
    500: '#af5bf4',
    950: '#000000',
  },
}
SCSS
$custom: #af5bf4;
$custom-light: #cb8ef9;
$custom-dark: #000000;
JSON
{
  "hex": "#af5bf4",
  "rgb": {
    "r": 175,
    "g": 91,
    "b": 244
  },
  "hsl": {
    "h": 272.941,
    "s": 87.429,
    "l": 65.686
  },
  "oklch": {
    "l": 0.64009,
    "c": 0.2233,
    "h": 306.3
  },
  "luminance": 0.23128
}

Semantic roles & 50–950 ramp

primary
#AF5BF4
secondary
#D3EFBC
accent
#E40268
background
#FCF9FF
surface
#F9F1FF
border
#D2CBD7
text
#140D17
muted
#827E85

Preview Lab

Preview with #AF5BF4

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

Preview Lab → · Contrast checker → · Palette generator →

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