#AF5FC8#AF5FC8

#AF5FC8 is a mid, vivid purple. Relative luminance 0.215; OKLCH L 61.9% C 0.171 H 317.6°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#AF5FC8
RGBrgb(175, 95, 200)
HSLhsl(286, 49%, 58%)
HSVhsv(286, 53%, 78%)
CMYKcmyk(12.5%, 52.5%, 0%, 21.6%)
CIE-LABlab(53.46, 49.15, -41.51)
CIE-LCHlch(53.46, 64.33, 319.82°)
OKLaboklab(61.93% 0.1265 -0.1154)
OKLCHoklch(61.93% 0.171 317.6)
XYZxyz(32.1953, 21.4696, 57.0805)
Luminance0.2147 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5FC8 #78C85F
analogous
#7A5FC8 #AF5FC8 #C85FAD
triadic
#AF5FC8 #C8AF5F #5FC8AF
tetradic
#AF5FC8 #C87A5F #78C85F #5FADC8
square
#AF5FC8 #C87A5F #78C85F #5FADC8
split-complementary
#AF5FC8 #ADC85F #5FC87A
monochromatic
#6C2C80 #933CAE #AF5FC8 #C68DD8 #DDBAE7

Accessibility & contrast

On white

3.97
#AF5FC8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#AF5FC8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5FC8
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5FC8#FFFFFF#000000##000000
##AF5FC81.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#497BCB
Deuteranopia (green-blind)
#6382C5
Tritanopia (blue-blind)
#AF6F8B
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #af5fc8;
/* rgb */ color: rgb(175, 95, 200);
/* oklch */ color: oklch(61.9% 0.171 317.6);
Tailwind
colors: {
  custom: {
    50: '#c98fd9',
    500: '#af5fc8',
    950: '#000000',
  },
}
SCSS
$custom: #af5fc8;
$custom-light: #c98fd9;
$custom-dark: #000000;
JSON
{
  "hex": "#af5fc8",
  "rgb": {
    "r": 175,
    "g": 95,
    "b": 200
  },
  "hsl": {
    "h": 285.714,
    "s": 48.837,
    "l": 57.843
  },
  "oklch": {
    "l": 0.61935,
    "c": 0.17121,
    "h": 317.6
  },
  "luminance": 0.21469
}

Semantic roles & 50–950 ramp

primary
#AF5FC8
secondary
#B6D6AC
accent
#D84F70
background
#FCF9FD
surface
#F9F1FA
border
#D2CBD3
text
#130D14
muted
#827E83

Preview Lab

Preview with #AF5FC8

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

Preview Lab → · Contrast checker → · Palette generator →

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