#AF5FBB#AF5FBB

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

Color values

HEX#AF5FBB
RGBrgb(175, 95, 187)
HSLhsl(292, 40%, 55%)
HSVhsv(292, 49%, 73%)
CMYKcmyk(6.4%, 49.2%, 0%, 26.7%)
CIE-LABlab(52.83, 46.54, -35.03)
CIE-LCHlch(52.83, 58.25, 323.03°)
OKLaboklab(61.26% 0.1249 -0.0967)
OKLCHoklch(61.26% 0.158 322.2)
XYZxyz(30.7401, 20.8876, 49.4166)
Luminance0.2089 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5FBB #6BBB5F
analogous
#815FBB #AF5FBB #BB5F99
triadic
#AF5FBB #BBAF5F #5FBBAF
tetradic
#AF5FBB #BB815F #6BBB5F #5F99BB
square
#AF5FBB #BB815F #6BBB5F #5F99BB
split-complementary
#AF5FBB #99BB5F #5FBB81
monochromatic
#683070 #8F429B #AF5FBB #C48ACD #DAB5E0

Accessibility & contrast

On white

4.06
#AF5FBB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#AF5FBB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5FBB
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5FBB#FFFFFF#000000##000000
##AF5FBB1.004.065.185.18
#FFFFFF4.061.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5278BE
Deuteranopia (green-blind)
#6981B8
Tritanopia (blue-blind)
#B16B84
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #af5fbb;
/* rgb */ color: rgb(175, 95, 187);
/* oklch */ color: oklch(61.3% 0.158 322.2);
Tailwind
colors: {
  custom: {
    50: '#c98fd0',
    500: '#af5fbb',
    950: '#000000',
  },
}
SCSS
$custom: #af5fbb;
$custom-light: #c98fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#af5fbb",
  "rgb": {
    "r": 175,
    "g": 95,
    "b": 187
  },
  "hsl": {
    "h": 292.174,
    "s": 40.351,
    "l": 55.294
  },
  "oklch": {
    "l": 0.61261,
    "c": 0.15792,
    "h": 322.2
  },
  "luminance": 0.20886
}

Semantic roles & 50–950 ramp

primary
#AF5FBB
secondary
#ADCEA8
accent
#D05867
background
#FCF8FC
surface
#F8F0F9
border
#D1CBD2
text
#130D14
muted
#827D82

Preview Lab

Preview with #AF5FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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