#AF4DD7#AF4DD7

#AF4DD7 is a mid, highly saturated purple. Relative luminance 0.193; OKLCH L 60.5% C 0.213 H 314.7°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#AF4DD7
RGBrgb(175, 77, 215)
HSLhsl(283, 63%, 57%)
HSVhsv(283, 64%, 84%)
CMYKcmyk(18.6%, 64.2%, 0%, 15.7%)
CIE-LABlab(51.07, 60.89, -53.87)
CIE-LCHlch(51.07, 81.30, 318.50°)
OKLaboklab(60.46% 0.1496 -0.1514)
OKLCHoklch(60.46% 0.213 314.7)
XYZxyz(32.5968, 19.3291, 66.2906)
Luminance0.1933 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4DD7 #75D74D
analogous
#6A4DD7 #AF4DD7 #D74DBA
triadic
#AF4DD7 #D7AF4D #4DD7AF
tetradic
#AF4DD7 #D76A4D #75D74D #4DBAD7
square
#AF4DD7 #D76A4D #75D74D #4DBAD7
split-complementary
#AF4DD7 #BAD74D #4DD76A
monochromatic
#6B1F8A #922ABC #AF4DD7 #C57FE2 #DCB1ED

Accessibility & contrast

On white

4.32
#AF4DD7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF4DD7#FFFFFF#000000##000000
##AF4DD71.004.324.874.87
#FFFFFF4.321.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0D74DB
Deuteranopia (green-blind)
#497CD4
Tritanopia (blue-blind)
#AC678B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #af4dd7;
/* rgb */ color: rgb(175, 77, 215);
/* oklch */ color: oklch(60.5% 0.213 314.7);
Tailwind
colors: {
  custom: {
    50: '#ca85e4',
    500: '#af4dd7',
    950: '#000000',
  },
}
SCSS
$custom: #af4dd7;
$custom-light: #ca85e4;
$custom-dark: #000000;
JSON
{
  "hex": "#af4dd7",
  "rgb": {
    "r": 175,
    "g": 77,
    "b": 215
  },
  "hsl": {
    "h": 282.609,
    "s": 63.303,
    "l": 57.255
  },
  "oklch": {
    "l": 0.60458,
    "c": 0.21281,
    "h": 314.7
  },
  "luminance": 0.19328
}

Semantic roles & 50–950 ramp

primary
#AF4DD7
secondary
#B4DCA4
accent
#E64171
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AF4DD7

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

Preview Lab → · Contrast checker → · Palette generator →

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