#AF5BCD#AF5BCD

#AF5BCD is a mid, vivid purple. Relative luminance 0.210; OKLCH L 61.6% C 0.183 H 316.4°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#AF5BCD
RGBrgb(175, 91, 205)
HSLhsl(284, 53%, 58%)
HSVhsv(284, 56%, 80%)
CMYKcmyk(14.6%, 55.6%, 0%, 19.6%)
CIE-LABlab(52.95, 52.20, -45.16)
CIE-LCHlch(52.95, 69.02, 319.13°)
OKLaboklab(61.65% 0.1322 -0.126)
OKLCHoklch(61.65% 0.183 316.4)
XYZxyz(32.4381, 21.0050, 60.0914)
Luminance0.2100 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5BCD #79CD5B
analogous
#765BCD #AF5BCD #CD5BB2
triadic
#AF5BCD #CDAF5B #5BCDAF
tetradic
#AF5BCD #CD765B #79CD5B #5BB2CD
square
#AF5BCD #CD765B #79CD5B #5BB2CD
split-complementary
#AF5BCD #B2CD5B #5BCD76
monochromatic
#6D2985 #9337B4 #AF5BCD #C68ADB #DDB9EA

Accessibility & contrast

On white

4.04
#AF5BCD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#AF5BCD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5BCD
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5BCD#FFFFFF#000000##000000
##AF5BCD1.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F79D1
Deuteranopia (green-blind)
#5D81CA
Tritanopia (blue-blind)
#AE6D8B
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #af5bcd;
/* rgb */ color: rgb(175, 91, 205);
/* oklch */ color: oklch(61.6% 0.183 316.4);
Tailwind
colors: {
  custom: {
    50: '#c98ddd',
    500: '#af5bcd',
    950: '#000000',
  },
}
SCSS
$custom: #af5bcd;
$custom-light: #c98ddd;
$custom-dark: #000000;
JSON
{
  "hex": "#af5bcd",
  "rgb": {
    "r": 175,
    "g": 91,
    "b": 205
  },
  "hsl": {
    "h": 284.211,
    "s": 53.271,
    "l": 58.039
  },
  "oklch": {
    "l": 0.61648,
    "c": 0.18266,
    "h": 316.4
  },
  "luminance": 0.21004
}

Semantic roles & 50–950 ramp

primary
#AF5BCD
secondary
#B7D9AB
accent
#DD4B71
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AF5BCD

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

Preview Lab → · Contrast checker → · Palette generator →

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