#AF5CBD#AF5CBD

#AF5CBD is a mid, vivid purple. Relative luminance 0.204; OKLCH L 60.9% C 0.165 H 321.7°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#AF5CBD
RGBrgb(175, 92, 189)
HSLhsl(291, 42%, 55%)
HSVhsv(291, 51%, 74%)
CMYKcmyk(7.4%, 51.3%, 0%, 25.9%)
CIE-LABlab(52.34, 48.48, -36.96)
CIE-LCHlch(52.34, 60.96, 322.68°)
OKLaboklab(60.93% 0.1293 -0.1022)
OKLCHoklch(60.93% 0.165 321.7)
XYZxyz(30.6906, 20.4437, 50.4637)
Luminance0.2044 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5CBD #6ABD5C
analogous
#7E5CBD #AF5CBD #BD5C9B
triadic
#AF5CBD #BDAF5C #5CBDAF
tetradic
#AF5CBD #BD7E5C #6ABD5C #5C9BBD
square
#AF5CBD #BD7E5C #6ABD5C #5C9BBD
split-complementary
#AF5CBD #9BBD5C #5CBD7E
monochromatic
#672E71 #8F3F9C #AF5CBD #C488CF #DAB3E0

Accessibility & contrast

On white

4.13
#AF5CBD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#AF5CBD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5CBD
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5CBD#FFFFFF#000000##000000
##AF5CBD1.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D77C0
Deuteranopia (green-blind)
#6680BA
Tritanopia (blue-blind)
#B16984
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #af5cbd;
/* rgb */ color: rgb(175, 92, 189);
/* oklch */ color: oklch(60.9% 0.165 321.7);
Tailwind
colors: {
  custom: {
    50: '#c98dd1',
    500: '#af5cbd',
    950: '#000000',
  },
}
SCSS
$custom: #af5cbd;
$custom-light: #c98dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#af5cbd",
  "rgb": {
    "r": 175,
    "g": 92,
    "b": 189
  },
  "hsl": {
    "h": 291.34,
    "s": 42.358,
    "l": 55.098
  },
  "oklch": {
    "l": 0.60929,
    "c": 0.16486,
    "h": 321.7
  },
  "luminance": 0.20442
}

Semantic roles & 50–950 ramp

primary
#AF5CBD
secondary
#ACCFA6
accent
#D25668
background
#FCF8FC
surface
#F9F0F9
border
#D2CBD2
text
#130C14
muted
#827D82

Preview Lab

Preview with #AF5CBD

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

Preview Lab → · Contrast checker → · Palette generator →

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