#AF5BF1#AF5BF1

#AF5BF1 is a light, highly saturated violet. Relative luminance 0.229; OKLCH L 63.8% C 0.220 H 307.0°. Best body text is #000000 at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#AF5BF1
RGBrgb(175, 91, 241)
HSLhsl(274, 84%, 65%)
HSVhsv(274, 62%, 95%)
CMYKcmyk(27.4%, 62.2%, 0%, 5.5%)
CIE-LABlab(55.02, 59.93, -62.19)
CIE-LCHlch(55.02, 86.37, 313.94°)
OKLaboklab(63.82% 0.1325 -0.1758)
OKLCHoklch(63.82% 0.22 307)
XYZxyz(37.2941, 22.9474, 85.6666)
Luminance0.2295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5BF1 #9DF15B
analogous
#645BF1 #AF5BF1 #F15BE8
triadic
#AF5BF1 #F1AF5B #5BF1AF
tetradic
#AF5BF1 #F1645B #9DF15B #5BE8F1
square
#AF5BF1 #F1645B #9DF15B #5BE8F1
split-complementary
#AF5BF1 #E8F15B #5BF164
monochromatic
#7310C1 #9323EC #AF5BF1 #CB93F6 #E6CCFB

Accessibility & contrast

On white

3.76
#AF5BF1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.59
#AF5BF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5BF1
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5BF1#FFFFFF#000000##000000
##AF5BF11.003.765.595.59
#FFFFFF3.761.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0081F6
Deuteranopia (green-blind)
#3D84EE
Tritanopia (blue-blind)
#A47A9E
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #af5bf1;
/* rgb */ color: rgb(175, 91, 241);
/* oklch */ color: oklch(63.8% 0.220 307.0);
Tailwind
colors: {
  custom: {
    50: '#cb8ef6',
    500: '#af5bf1',
    950: '#000000',
  },
}
SCSS
$custom: #af5bf1;
$custom-light: #cb8ef6;
$custom-dark: #000000;
JSON
{
  "hex": "#af5bf1",
  "rgb": {
    "r": 175,
    "g": 91,
    "b": 241
  },
  "hsl": {
    "h": 273.6,
    "s": 84.27,
    "l": 65.098
  },
  "oklch": {
    "l": 0.63815,
    "c": 0.22015,
    "h": 307
  },
  "luminance": 0.22947
}

Semantic roles & 50–950 ramp

primary
#AF5BF1
secondary
#D1EDBA
accent
#E10566
background
#FCF8FF
surface
#F9F0FF
border
#D2CBD7
text
#140D17
muted
#827D85

Preview Lab

Preview with #AF5BF1

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

Preview Lab → · Contrast checker → · Palette generator →

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