#AF5ACC#AF5ACC

#AF5ACC is a mid, vivid purple. Relative luminance 0.208; OKLCH L 61.5% C 0.183 H 316.8°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#AF5ACC
RGBrgb(175, 90, 204)
HSLhsl(285, 53%, 58%)
HSVhsv(285, 56%, 80%)
CMYKcmyk(14.2%, 55.9%, 0%, 20%)
CIE-LABlab(52.72, 52.49, -44.97)
CIE-LCHlch(52.72, 69.12, 319.41°)
OKLaboklab(61.46% 0.1335 -0.1254)
OKLCHoklch(61.46% 0.183 316.8)
XYZxyz(32.2328, 20.7870, 59.4294)
Luminance0.2079 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5ACC #77CC5A
analogous
#765ACC #AF5ACC #CC5AB0
triadic
#AF5ACC #CCAF5A #5ACCAF
tetradic
#AF5ACC #CC765A #77CC5A #5AB0CC
square
#AF5ACC #CC765A #77CC5A #5AB0CC
split-complementary
#AF5ACC #B0CC5A #5ACC76
monochromatic
#6C2983 #9337B2 #AF5ACC #C689DA #DCB7E9

Accessibility & contrast

On white

4.07
#AF5ACC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#AF5ACC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5ACC
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5ACC#FFFFFF#000000##000000
##AF5ACC1.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F78D0
Deuteranopia (green-blind)
#5C80C9
Tritanopia (blue-blind)
#AE6C8B
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #af5acc;
/* rgb */ color: rgb(175, 90, 204);
/* oklch */ color: oklch(61.5% 0.183 316.8);
Tailwind
colors: {
  custom: {
    50: '#c98cdc',
    500: '#af5acc',
    950: '#000000',
  },
}
SCSS
$custom: #af5acc;
$custom-light: #c98cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#af5acc",
  "rgb": {
    "r": 175,
    "g": 90,
    "b": 204
  },
  "hsl": {
    "h": 284.737,
    "s": 52.778,
    "l": 57.647
  },
  "oklch": {
    "l": 0.61456,
    "c": 0.18317,
    "h": 316.8
  },
  "luminance": 0.20786
}

Semantic roles & 50–950 ramp

primary
#AF5ACC
secondary
#B6D8AA
accent
#DC4C70
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AF5ACC

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

Preview Lab → · Contrast checker → · Palette generator →

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