#AF5CCE#AF5CCE

#AF5CCE is a mid, vivid purple. Relative luminance 0.212; OKLCH L 61.8% C 0.182 H 316.0°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#AF5CCE
RGBrgb(175, 92, 206)
HSLhsl(284, 54%, 58%)
HSVhsv(284, 55%, 81%)
CMYKcmyk(15%, 55.3%, 0%, 19.2%)
CIE-LABlab(53.20, 51.90, -45.35)
CIE-LCHlch(53.20, 68.92, 318.85°)
OKLaboklab(61.84% 0.131 -0.1266)
OKLCHoklch(61.84% 0.182 316)
XYZxyz(32.6452, 21.2256, 60.7578)
Luminance0.2122 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5CCE #7BCE5C
analogous
#765CCE #AF5CCE #CE5CB4
triadic
#AF5CCE #CEAF5C #5CCEAF
tetradic
#AF5CCE #CE765C #7BCE5C #5CB4CE
square
#AF5CCE #CE765C #7BCE5C #5CB4CE
split-complementary
#AF5CCE #B4CE5C #5CCE76
monochromatic
#6D2987 #9337B6 #AF5CCE #C68BDC #DDBAEA

Accessibility & contrast

On white

4.00
#AF5CCE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#AF5CCE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5CCE
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5CCE#FFFFFF#000000##000000
##AF5CCE1.004.005.245.24
#FFFFFF4.001.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#407AD2
Deuteranopia (green-blind)
#5D81CB
Tritanopia (blue-blind)
#AD6E8C
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #af5cce;
/* rgb */ color: rgb(175, 92, 206);
/* oklch */ color: oklch(61.8% 0.182 316.0);
Tailwind
colors: {
  custom: {
    50: '#c98edd',
    500: '#af5cce',
    950: '#000000',
  },
}
SCSS
$custom: #af5cce;
$custom-light: #c98edd;
$custom-dark: #000000;
JSON
{
  "hex": "#af5cce",
  "rgb": {
    "r": 175,
    "g": 92,
    "b": 206
  },
  "hsl": {
    "h": 283.684,
    "s": 53.774,
    "l": 58.431
  },
  "oklch": {
    "l": 0.61842,
    "c": 0.18216,
    "h": 316
  },
  "luminance": 0.21224
}

Semantic roles & 50–950 ramp

primary
#AF5CCE
secondary
#B9DAAC
accent
#DD4B72
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AF5CCE

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

Preview Lab → · Contrast checker → · Palette generator →

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