#AF5CB7#AF5CB7

#AF5CB7 is a mid, vivid purple. Relative luminance 0.202; OKLCH L 60.6% C 0.159 H 324.0°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#AF5CB7
RGBrgb(175, 92, 183)
HSLhsl(295, 39%, 54%)
HSVhsv(295, 50%, 72%)
CMYKcmyk(4.4%, 49.7%, 0%, 28.2%)
CIE-LABlab(52.05, 47.31, -33.93)
CIE-LCHlch(52.05, 58.23, 324.35°)
OKLaboklab(60.62% 0.1285 -0.0935)
OKLCHoklch(60.62% 0.159 324)
XYZxyz(30.0528, 20.1886, 47.1043)
Luminance0.2019 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5CB7 #64B75C
analogous
#825CB7 #AF5CB7 #B75C92
triadic
#AF5CB7 #B7AF5C #5CB7AF
tetradic
#AF5CB7 #B7825C #64B75C #5C92B7
square
#AF5CB7 #B7825C #64B75C #5C92B7
split-complementary
#AF5CB7 #92B75C #5CB782
monochromatic
#652F6A #8D4294 #AF5CB7 #C486CA #D9B1DD

Accessibility & contrast

On white

4.17
#AF5CB7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#AF5CB7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5CB7
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5CB7#FFFFFF#000000##000000
##AF5CB71.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5076BA
Deuteranopia (green-blind)
#6980B4
Tritanopia (blue-blind)
#B26781
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #af5cb7;
/* rgb */ color: rgb(175, 92, 183);
/* oklch */ color: oklch(60.6% 0.159 324.0);
Tailwind
colors: {
  custom: {
    50: '#c98dcd',
    500: '#af5cb7',
    950: '#000000',
  },
}
SCSS
$custom: #af5cb7;
$custom-light: #c98dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#af5cb7",
  "rgb": {
    "r": 175,
    "g": 92,
    "b": 183
  },
  "hsl": {
    "h": 294.725,
    "s": 38.723,
    "l": 53.922
  },
  "oklch": {
    "l": 0.60625,
    "c": 0.15893,
    "h": 324
  },
  "luminance": 0.20187
}

Semantic roles & 50–950 ramp

primary
#AF5CB7
secondary
#A7CBA4
accent
#CF5963
background
#FCF8FC
surface
#F9F0F9
border
#D2CBD2
text
#130C13
muted
#827D82

Preview Lab

Preview with #AF5CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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