#AF5BC8#AF5BC8

#AF5BC8 is a mid, vivid purple. Relative luminance 0.208; OKLCH L 61.4% C 0.178 H 318.0°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#AF5BC8
RGBrgb(175, 91, 200)
HSLhsl(286, 50%, 57%)
HSVhsv(286, 55%, 78%)
CMYKcmyk(12.5%, 54.5%, 0%, 21.6%)
CIE-LABlab(52.69, 51.18, -42.72)
CIE-LCHlch(52.69, 66.66, 320.15°)
OKLaboklab(61.37% 0.1319 -0.1189)
OKLCHoklch(61.37% 0.178 318)
XYZxyz(31.8442, 20.7674, 56.9635)
Luminance0.2077 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5BC8 #74C85B
analogous
#795BC8 #AF5BC8 #C85BAA
triadic
#AF5BC8 #C8AF5B #5BC8AF
tetradic
#AF5BC8 #C8795B #74C85B #5BAAC8
square
#AF5BC8 #C8795B #74C85B #5BAAC8
split-complementary
#AF5BC8 #AAC85B #5BC879
monochromatic
#6B2A7E #923AAC #AF5BC8 #C589D7 #DCB7E7

Accessibility & contrast

On white

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

On black

5.15
#AF5BC8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5BC8
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5BC8#FFFFFF#000000##000000
##AF5BC81.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4478CC
Deuteranopia (green-blind)
#6081C5
Tritanopia (blue-blind)
#AF6C89
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #af5bc8;
/* rgb */ color: rgb(175, 91, 200);
/* oklch */ color: oklch(61.4% 0.178 318.0);
Tailwind
colors: {
  custom: {
    50: '#c98dd9',
    500: '#af5bc8',
    950: '#000000',
  },
}
SCSS
$custom: #af5bc8;
$custom-light: #c98dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#af5bc8",
  "rgb": {
    "r": 175,
    "g": 91,
    "b": 200
  },
  "hsl": {
    "h": 286.239,
    "s": 49.772,
    "l": 57.059
  },
  "oklch": {
    "l": 0.61372,
    "c": 0.17755,
    "h": 318
  },
  "luminance": 0.20766
}

Semantic roles & 50–950 ramp

primary
#AF5BC8
secondary
#B3D6A9
accent
#D94F6E
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#130C15
muted
#827D83

Preview Lab

Preview with #AF5BC8

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

Preview Lab → · Contrast checker → · Palette generator →

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