#AF5BF8#AF5BF8

#AF5BF8 is a light, highly saturated violet. Relative luminance 0.234; OKLCH L 64.3% C 0.227 H 305.5°. Best body text is #000000 at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#AF5BF8
RGBrgb(175, 91, 248)
HSLhsl(272, 92%, 66%)
HSVhsv(272, 63%, 97%)
CMYKcmyk(29.4%, 63.3%, 0%, 2.7%)
CIE-LABlab(55.46, 61.51, -65.38)
CIE-LCHlch(55.46, 89.77, 313.25°)
OKLaboklab(64.27% 0.1321 -0.1852)
OKLCHoklch(64.27% 0.227 305.5)
XYZxyz(38.3599, 23.3737, 91.2795)
Luminance0.2337 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5BF8 #A4F85B
analogous
#615BF8 #AF5BF8 #F85BF3
triadic
#AF5BF8 #F8AF5B #5BF8AF
tetradic
#AF5BF8 #F8615B #A4F85B #5BF3F8
square
#AF5BF8 #F8615B #A4F85B #5BF3F8
split-complementary
#AF5BF8 #F3F85B #5BF861
monochromatic
#7309D0 #9220F5 #AF5BF8 #CC96FB #E8D0FD

Accessibility & contrast

On white

3.70
#AF5BF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.67
#AF5BF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5BF8
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5BF8#FFFFFF#000000##000000
##AF5BF81.003.705.675.67
#FFFFFF3.701.0021.0021.00
#0000005.6721.001.001.00
##0000005.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0082FD
Deuteranopia (green-blind)
#3385F5
Tritanopia (blue-blind)
#A27CA2
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #af5bf8;
/* rgb */ color: rgb(175, 91, 248);
/* oklch */ color: oklch(64.3% 0.227 305.5);
Tailwind
colors: {
  custom: {
    50: '#cb8efb',
    500: '#af5bf8',
    950: '#000000',
  },
}
SCSS
$custom: #af5bf8;
$custom-light: #cb8efb;
$custom-dark: #000000;
JSON
{
  "hex": "#af5bf8",
  "rgb": {
    "r": 175,
    "g": 91,
    "b": 248
  },
  "hsl": {
    "h": 272.102,
    "s": 91.813,
    "l": 66.471
  },
  "oklch": {
    "l": 0.6427,
    "c": 0.22748,
    "h": 305.5
  },
  "luminance": 0.23373
}

Semantic roles & 50–950 ramp

primary
#AF5BF8
secondary
#D6F1BE
accent
#E6006B
background
#FDF9FF
surface
#FAF1FF
border
#D3CBD7
text
#140D17
muted
#837E85

Preview Lab

Preview with #AF5BF8

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

Preview Lab → · Contrast checker → · Palette generator →

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