#AF5BC7#AF5BC7

#AF5BC7 is a mid, vivid purple. Relative luminance 0.207; OKLCH L 61.3% C 0.177 H 318.3°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#AF5BC7
RGBrgb(175, 91, 199)
HSLhsl(287, 49%, 57%)
HSVhsv(287, 54%, 78%)
CMYKcmyk(12.1%, 54.3%, 0%, 22%)
CIE-LABlab(52.64, 50.97, -42.22)
CIE-LCHlch(52.64, 66.19, 320.36°)
OKLaboklab(61.32% 0.1318 -0.1175)
OKLCHoklch(61.32% 0.177 318.3)
XYZxyz(31.7277, 20.7208, 56.3500)
Luminance0.2072 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5BC7 #73C75B
analogous
#795BC7 #AF5BC7 #C75BA9
triadic
#AF5BC7 #C7AF5B #5BC7AF
tetradic
#AF5BC7 #C7795B #73C75B #5BA9C7
square
#AF5BC7 #C7795B #73C75B #5BA9C7
split-complementary
#AF5BC7 #A9C75B #5BC779
monochromatic
#6B2B7D #923AAB #AF5BC7 #C589D7 #DCB6E6

Accessibility & contrast

On white

4.08
#AF5BC7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#AF5BC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5BC7
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5BC7#FFFFFF#000000##000000
##AF5BC71.004.085.145.14
#FFFFFF4.081.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4478CB
Deuteranopia (green-blind)
#6080C4
Tritanopia (blue-blind)
#AF6B88
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #af5bc7;
/* rgb */ color: rgb(175, 91, 199);
/* oklch */ color: oklch(61.3% 0.177 318.3);
Tailwind
colors: {
  custom: {
    50: '#c98dd8',
    500: '#af5bc7',
    950: '#000000',
  },
}
SCSS
$custom: #af5bc7;
$custom-light: #c98dd8;
$custom-dark: #000000;
JSON
{
  "hex": "#af5bc7",
  "rgb": {
    "r": 175,
    "g": 91,
    "b": 199
  },
  "hsl": {
    "h": 286.667,
    "s": 49.091,
    "l": 56.863
  },
  "oklch": {
    "l": 0.61318,
    "c": 0.17653,
    "h": 318.3
  },
  "luminance": 0.2072
}

Semantic roles & 50–950 ramp

primary
#AF5BC7
secondary
#B3D5A9
accent
#D94F6E
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#130C14
muted
#827D83

Preview Lab

Preview with #AF5BC7

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

Preview Lab → · Contrast checker → · Palette generator →

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