#AF5ACD#AF5ACD

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

Color values

HEX#AF5ACD
RGBrgb(175, 90, 205)
HSLhsl(284, 53%, 58%)
HSVhsv(284, 56%, 80%)
CMYKcmyk(14.6%, 56.1%, 0%, 19.6%)
CIE-LABlab(52.77, 52.69, -45.46)
CIE-LCHlch(52.77, 69.59, 319.22°)
OKLaboklab(61.51% 0.1335 -0.1269)
OKLCHoklch(61.51% 0.184 316.5)
XYZxyz(32.3532, 20.8352, 60.0631)
Luminance0.2083 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5ACD #78CD5A
analogous
#765ACD #AF5ACD #CD5AB1
triadic
#AF5ACD #CDAF5A #5ACDAF
tetradic
#AF5ACD #CD765A #78CD5A #5AB1CD
square
#AF5ACD #CD765A #78CD5A #5AB1CD
split-complementary
#AF5ACD #B1CD5A #5ACD76
monochromatic
#6C2884 #9336B3 #AF5ACD #C689DB #DDB8E9

Accessibility & contrast

On white

4.06
#AF5ACD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#AF5ACD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5ACD
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5ACD#FFFFFF#000000##000000
##AF5ACD1.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E79D1
Deuteranopia (green-blind)
#5C81CA
Tritanopia (blue-blind)
#AE6D8B
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #af5acd;
/* rgb */ color: rgb(175, 90, 205);
/* oklch */ color: oklch(61.5% 0.184 316.5);
Tailwind
colors: {
  custom: {
    50: '#c98cdd',
    500: '#af5acd',
    950: '#000000',
  },
}
SCSS
$custom: #af5acd;
$custom-light: #c98cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#af5acd",
  "rgb": {
    "r": 175,
    "g": 90,
    "b": 205
  },
  "hsl": {
    "h": 284.348,
    "s": 53.488,
    "l": 57.843
  },
  "oklch": {
    "l": 0.61512,
    "c": 0.1842,
    "h": 316.5
  },
  "luminance": 0.20834
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF5ACD

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

Preview Lab → · Contrast checker → · Palette generator →

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