#AF4FD2#AF4FD2

#AF4FD2 is a mid, highly saturated purple. Relative luminance 0.194; OKLCH L 60.4% C 0.205 H 315.9°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#AF4FD2
RGBrgb(175, 79, 210)
HSLhsl(284, 59%, 57%)
HSVhsv(284, 62%, 82%)
CMYKcmyk(16.7%, 62.4%, 0%, 17.6%)
CIE-LABlab(51.11, 58.97, -50.96)
CIE-LCHlch(51.11, 77.94, 319.17°)
OKLaboklab(60.39% 0.1474 -0.1429)
OKLCHoklch(60.39% 0.205 315.9)
XYZxyz(32.1062, 19.3602, 63.0059)
Luminance0.1936 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4FD2 #72D24F
analogous
#6E4FD2 #AF4FD2 #D24FB4
triadic
#AF4FD2 #D2AF4F #4FD2AF
tetradic
#AF4FD2 #D26E4F #72D24F #4FB4D2
square
#AF4FD2 #D26E4F #72D24F #4FB4D2
split-complementary
#AF4FD2 #B4D24F #4FD26E
monochromatic
#6A2285 #912EB5 #AF4FD2 #C580DE #DBB0EB

Accessibility & contrast

On white

4.31
#AF4FD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#AF4FD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4FD2
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4FD2#FFFFFF#000000##000000
##AF4FD21.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2174D6
Deuteranopia (green-blind)
#4F7CCF
Tritanopia (blue-blind)
#AD6789
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #af4fd2;
/* rgb */ color: rgb(175, 79, 210);
/* oklch */ color: oklch(60.4% 0.205 315.9);
Tailwind
colors: {
  custom: {
    50: '#ca86e0',
    500: '#af4fd2',
    950: '#000000',
  },
}
SCSS
$custom: #af4fd2;
$custom-light: #ca86e0;
$custom-dark: #000000;
JSON
{
  "hex": "#af4fd2",
  "rgb": {
    "r": 175,
    "g": 79,
    "b": 210
  },
  "hsl": {
    "h": 283.969,
    "s": 59.276,
    "l": 56.667
  },
  "oklch": {
    "l": 0.6039,
    "c": 0.20525,
    "h": 315.9
  },
  "luminance": 0.19359
}

Semantic roles & 50–950 ramp

primary
#AF4FD2
secondary
#B2D9A4
accent
#E2456F
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF4FD2

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

Preview Lab → · Contrast checker → · Palette generator →

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