#AF5FBF#AF5FBF

#AF5FBF is a mid, vivid purple. Relative luminance 0.211; OKLCH L 61.5% C 0.162 H 320.7°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#AF5FBF
RGBrgb(175, 95, 191)
HSLhsl(290, 43%, 56%)
HSVhsv(290, 50%, 75%)
CMYKcmyk(8.4%, 50.3%, 0%, 25.1%)
CIE-LABlab(53.02, 47.33, -37.04)
CIE-LCHlch(53.02, 60.10, 321.96°)
OKLaboklab(61.46% 0.1254 -0.1025)
OKLCHoklch(61.46% 0.162 320.7)
XYZxyz(31.1743, 21.0612, 51.7032)
Luminance0.2106 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5FBF #6FBF5F
analogous
#7F5FBF #AF5FBF #BF5F9F
triadic
#AF5FBF #BFAF5F #5FBFAF
tetradic
#AF5FBF #BF7F5F #6FBF5F #5F9FBF
square
#AF5FBF #BF7F5F #6FBF5F #5F9FBF
split-complementary
#AF5FBF #9FBF5F #5FBF7F
monochromatic
#692F75 #9140A1 #AF5FBF #C58BD0 #DBB6E2

Accessibility & contrast

On white

4.03
#AF5FBF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#AF5FBF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5FBF
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5FBF#FFFFFF#000000##000000
##AF5FBF1.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F79C2
Deuteranopia (green-blind)
#6882BC
Tritanopia (blue-blind)
#B06C86
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #af5fbf;
/* rgb */ color: rgb(175, 95, 191);
/* oklch */ color: oklch(61.5% 0.162 320.7);
Tailwind
colors: {
  custom: {
    50: '#c98fd2',
    500: '#af5fbf',
    950: '#000000',
  },
}
SCSS
$custom: #af5fbf;
$custom-light: #c98fd2;
$custom-dark: #000000;
JSON
{
  "hex": "#af5fbf",
  "rgb": {
    "r": 175,
    "g": 95,
    "b": 191
  },
  "hsl": {
    "h": 290,
    "s": 42.857,
    "l": 56.078
  },
  "oklch": {
    "l": 0.61464,
    "c": 0.16196,
    "h": 320.7
  },
  "luminance": 0.2106
}

Semantic roles & 50–950 ramp

primary
#AF5FBF
secondary
#B0D1A9
accent
#D3556A
background
#FCF9FC
surface
#F9F1F9
border
#D2CBD2
text
#130D14
muted
#827E82

Preview Lab

Preview with #AF5FBF

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

Preview Lab → · Contrast checker → · Palette generator →

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