#AF4AD5#AF4AD5

#AF4AD5 is a mid, highly saturated purple. Relative luminance 0.188; OKLCH L 60.0% C 0.215 H 315.4°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#AF4AD5
RGBrgb(175, 74, 213)
HSLhsl(284, 62%, 56%)
HSVhsv(284, 65%, 84%)
CMYKcmyk(17.8%, 65.3%, 0%, 16.5%)
CIE-LABlab(50.47, 61.81, -53.69)
CIE-LCHlch(50.47, 81.87, 319.02°)
OKLaboklab(59.99% 0.153 -0.1508)
OKLCHoklch(59.99% 0.215 315.4)
XYZxyz(32.1363, 18.8167, 64.8771)
Luminance0.1882 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4AD5 #70D54A
analogous
#6A4AD5 #AF4AD5 #D54AB6
triadic
#AF4AD5 #D5AF4A #4AD5AF
tetradic
#AF4AD5 #D56A4A #70D54A #4AB6D5
square
#AF4AD5 #D56A4A #70D54A #4AB6D5
split-complementary
#AF4AD5 #B6D54A #4AD56A
monochromatic
#6A1F86 #912BB7 #AF4AD5 #C57CE1 #DBADEC

Accessibility & contrast

On white

4.41
#AF4AD5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#AF4AD5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4AD5
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4AD5#FFFFFF#000000##000000
##AF4AD51.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0372D9
Deuteranopia (green-blind)
#487BD2
Tritanopia (blue-blind)
#AC6489
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #af4ad5;
/* rgb */ color: rgb(175, 74, 213);
/* oklch */ color: oklch(60.0% 0.215 315.4);
Tailwind
colors: {
  custom: {
    50: '#ca83e3',
    500: '#af4ad5',
    950: '#000000',
  },
}
SCSS
$custom: #af4ad5;
$custom-light: #ca83e3;
$custom-dark: #000000;
JSON
{
  "hex": "#af4ad5",
  "rgb": {
    "r": 175,
    "g": 74,
    "b": 213
  },
  "hsl": {
    "h": 283.597,
    "s": 62.332,
    "l": 56.275
  },
  "oklch": {
    "l": 0.59989,
    "c": 0.21486,
    "h": 315.4
  },
  "luminance": 0.18816
}

Semantic roles & 50–950 ramp

primary
#AF4AD5
secondary
#B0DAA1
accent
#E5426F
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF4AD5

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

Preview Lab → · Contrast checker → · Palette generator →

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