#AF4BD2#AF4BD2

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

Color values

HEX#AF4BD2
RGBrgb(175, 75, 210)
HSLhsl(284, 60%, 56%)
HSVhsv(284, 64%, 82%)
CMYKcmyk(16.7%, 64.3%, 0%, 17.6%)
CIE-LABlab(50.45, 60.77, -52.01)
CIE-LCHlch(50.45, 79.99, 319.44°)
OKLaboklab(59.92% 0.152 -0.1459)
OKLCHoklch(59.92% 0.211 316.2)
XYZxyz(31.8264, 18.8004, 62.9126)
Luminance0.1880 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4BD2 #6ED24B
analogous
#6B4BD2 #AF4BD2 #D24BB2
triadic
#AF4BD2 #D2AF4B #4BD2AF
tetradic
#AF4BD2 #D26B4B #6ED24B #4BB2D2
square
#AF4BD2 #D26B4B #6ED24B #4BB2D2
split-complementary
#AF4BD2 #B2D24B #4BD26B
monochromatic
#692182 #902DB3 #AF4BD2 #C57CDE #DBADEA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF4BD2#FFFFFF#000000##000000
##AF4BD21.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)
#1572D6
Deuteranopia (green-blind)
#4B7BCF
Tritanopia (blue-blind)
#AD6488
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #af4bd2;
/* rgb */ color: rgb(175, 75, 210);
/* oklch */ color: oklch(59.9% 0.211 316.2);
Tailwind
colors: {
  custom: {
    50: '#ca84e0',
    500: '#af4bd2',
    950: '#000000',
  },
}
SCSS
$custom: #af4bd2;
$custom-light: #ca84e0;
$custom-dark: #000000;
JSON
{
  "hex": "#af4bd2",
  "rgb": {
    "r": 175,
    "g": 75,
    "b": 210
  },
  "hsl": {
    "h": 284.444,
    "s": 60,
    "l": 55.882
  },
  "oklch": {
    "l": 0.59918,
    "c": 0.21069,
    "h": 316.2
  },
  "luminance": 0.18799
}

Semantic roles & 50–950 ramp

primary
#AF4BD2
secondary
#AFD8A0
accent
#E3456E
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF4BD2

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

Preview Lab → · Contrast checker → · Palette generator →

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