#AF5FBC#AF5FBC

#AF5FBC is a mid, vivid purple. Relative luminance 0.209; OKLCH L 61.3% C 0.159 H 321.9°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#AF5FBC
RGBrgb(175, 95, 188)
HSLhsl(292, 41%, 55%)
HSVhsv(292, 49%, 74%)
CMYKcmyk(6.9%, 49.5%, 0%, 26.3%)
CIE-LABlab(52.87, 46.74, -35.53)
CIE-LCHlch(52.87, 58.71, 322.76°)
OKLaboklab(61.31% 0.125 -0.0981)
OKLCHoklch(61.31% 0.159 321.9)
XYZxyz(30.8475, 20.9305, 49.9823)
Luminance0.2093 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5FBC #6CBC5F
analogous
#805FBC #AF5FBC #BC5F9A
triadic
#AF5FBC #BCAF5F #5FBCAF
tetradic
#AF5FBC #BC805F #6CBC5F #5F9ABC
square
#AF5FBC #BC805F #6CBC5F #5F9ABC
split-complementary
#AF5FBC #9ABC5F #5FBC80
monochromatic
#682F71 #90419C #AF5FBC #C58ACE #DAB5E0

Accessibility & contrast

On white

4.05
#AF5FBC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#AF5FBC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5FBC
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5FBC#FFFFFF#000000##000000
##AF5FBC1.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5178BF
Deuteranopia (green-blind)
#6981B9
Tritanopia (blue-blind)
#B16B85
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #af5fbc;
/* rgb */ color: rgb(175, 95, 188);
/* oklch */ color: oklch(61.3% 0.159 321.9);
Tailwind
colors: {
  custom: {
    50: '#c98fd0',
    500: '#af5fbc',
    950: '#000000',
  },
}
SCSS
$custom: #af5fbc;
$custom-light: #c98fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#af5fbc",
  "rgb": {
    "r": 175,
    "g": 95,
    "b": 188
  },
  "hsl": {
    "h": 291.613,
    "s": 40.969,
    "l": 55.49
  },
  "oklch": {
    "l": 0.61311,
    "c": 0.15893,
    "h": 321.9
  },
  "luminance": 0.20929
}

Semantic roles & 50–950 ramp

primary
#AF5FBC
secondary
#ADCFA8
accent
#D15768
background
#FCF8FC
surface
#F8F0F9
border
#D1CBD2
text
#130D14
muted
#827D82

Preview Lab

Preview with #AF5FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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