#AF5FC7#AF5FC7

#AF5FC7 is a mid, vivid purple. Relative luminance 0.214; OKLCH L 61.9% C 0.170 H 318.0°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#AF5FC7
RGBrgb(175, 95, 199)
HSLhsl(286, 48%, 58%)
HSVhsv(286, 52%, 78%)
CMYKcmyk(12.1%, 52.3%, 0%, 22%)
CIE-LABlab(53.41, 48.94, -41.01)
CIE-LCHlch(53.41, 63.85, 320.04°)
OKLaboklab(61.88% 0.1264 -0.114)
OKLCHoklch(61.88% 0.17 318)
XYZxyz(32.0788, 21.4230, 56.4670)
Luminance0.2142 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5FC7 #77C75F
analogous
#7B5FC7 #AF5FC7 #C75FAB
triadic
#AF5FC7 #C7AF5F #5FC7AF
tetradic
#AF5FC7 #C77B5F #77C75F #5FABC7
square
#AF5FC7 #C77B5F #77C75F #5FABC7
split-complementary
#AF5FC7 #ABC75F #5FC77B
monochromatic
#6C2C7F #933CAC #AF5FC7 #C68CD7 #DCBAE7

Accessibility & contrast

On white

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

On black

5.28
#AF5FC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5FC7
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5FC7#FFFFFF#000000##000000
##AF5FC71.003.975.285.28
#FFFFFF3.971.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A7ACA
Deuteranopia (green-blind)
#6382C4
Tritanopia (blue-blind)
#AF6E8A
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #af5fc7;
/* rgb */ color: rgb(175, 95, 199);
/* oklch */ color: oklch(61.9% 0.170 318.0);
Tailwind
colors: {
  custom: {
    50: '#c98fd8',
    500: '#af5fc7',
    950: '#000000',
  },
}
SCSS
$custom: #af5fc7;
$custom-light: #c98fd8;
$custom-dark: #000000;
JSON
{
  "hex": "#af5fc7",
  "rgb": {
    "r": 175,
    "g": 95,
    "b": 199
  },
  "hsl": {
    "h": 286.154,
    "s": 48.148,
    "l": 57.647
  },
  "oklch": {
    "l": 0.61882,
    "c": 0.17018,
    "h": 318
  },
  "luminance": 0.21422
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF5FC7

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

Preview Lab → · Contrast checker → · Palette generator →

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