#AF5FC5#AF5FC5

#AF5FC5 is a mid, vivid purple. Relative luminance 0.213; OKLCH L 61.8% C 0.168 H 318.6°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#AF5FC5
RGBrgb(175, 95, 197)
HSLhsl(287, 47%, 57%)
HSVhsv(287, 52%, 77%)
CMYKcmyk(11.2%, 51.8%, 0%, 22.7%)
CIE-LABlab(53.31, 48.54, -40.02)
CIE-LCHlch(53.31, 62.91, 320.49°)
OKLaboklab(61.78% 0.1262 -0.1111)
OKLCHoklch(61.78% 0.168 318.6)
XYZxyz(31.8481, 21.3308, 55.2521)
Luminance0.2133 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5FC5 #75C55F
analogous
#7C5FC5 #AF5FC5 #C55FA8
triadic
#AF5FC5 #C5AF5F #5FC5AF
tetradic
#AF5FC5 #C57C5F #75C55F #5FA8C5
square
#AF5FC5 #C57C5F #75C55F #5FA8C5
split-complementary
#AF5FC5 #A8C55F #5FC57C
monochromatic
#6B2D7C #923DA9 #AF5FC5 #C58CD5 #DCB9E6

Accessibility & contrast

On white

3.99
#AF5FC5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#AF5FC5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5FC5
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5FC5#FFFFFF#000000##000000
##AF5FC51.003.995.275.27
#FFFFFF3.991.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C7AC8
Deuteranopia (green-blind)
#6482C2
Tritanopia (blue-blind)
#AF6E89
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #af5fc5;
/* rgb */ color: rgb(175, 95, 197);
/* oklch */ color: oklch(61.8% 0.168 318.6);
Tailwind
colors: {
  custom: {
    50: '#c98fd7',
    500: '#af5fc5',
    950: '#000000',
  },
}
SCSS
$custom: #af5fc5;
$custom-light: #c98fd7;
$custom-dark: #000000;
JSON
{
  "hex": "#af5fc5",
  "rgb": {
    "r": 175,
    "g": 95,
    "b": 197
  },
  "hsl": {
    "h": 287.059,
    "s": 46.789,
    "l": 57.255
  },
  "oklch": {
    "l": 0.61776,
    "c": 0.16811,
    "h": 318.6
  },
  "luminance": 0.2133
}

Semantic roles & 50–950 ramp

primary
#AF5FC5
secondary
#B4D5AB
accent
#D6516E
background
#FCF9FD
surface
#F9F1FA
border
#D2CBD3
text
#130D14
muted
#827E83

Preview Lab

Preview with #AF5FC5

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

Preview Lab → · Contrast checker → · Palette generator →

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