#AF74BD#AF74BD

#AF74BD is a light, vivid purple. Relative luminance 0.253; OKLCH L 64.7% C 0.124 H 319.8°. Best body text is #000000 at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#AF74BD
RGBrgb(175, 116, 189)
HSLhsl(288, 36%, 60%)
HSVhsv(288, 39%, 74%)
CMYKcmyk(7.4%, 38.6%, 0%, 25.9%)
CIE-LABlab(57.35, 35.66, -29.13)
CIE-LCHlch(57.35, 46.05, 320.75°)
OKLaboklab(64.67% 0.0945 -0.0799)
OKLCHoklch(64.67% 0.124 319.8)
XYZxyz(33.1087, 25.2799, 51.2697)
Luminance0.2528 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF74BD #82BD74
analogous
#8A74BD #AF74BD #BD74A7
triadic
#AF74BD #BDAF74 #74BDAF
tetradic
#AF74BD #BD8A74 #82BD74 #74A7BD
square
#AF74BD #BD8A74 #82BD74 #74A7BD
split-complementary
#AF74BD #A7BD74 #74BD8A
monochromatic
#6F3B7C #954EA5 #AF74BD #C79DD1 #DFC7E4

Accessibility & contrast

On white

3.47
#AF74BD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.06
#AF74BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF74BD
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF74BD#FFFFFF#000000##000000
##AF74BD1.003.476.066.06
#FFFFFF3.471.0021.0021.00
#0000006.0621.001.001.00
##0000006.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A86C0
Deuteranopia (green-blind)
#798CBB
Tritanopia (blue-blind)
#B07D90
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #af74bd;
/* rgb */ color: rgb(175, 116, 189);
/* oklch */ color: oklch(64.7% 0.124 319.8);
Tailwind
colors: {
  custom: {
    50: '#c89dd1',
    500: '#af74bd',
    950: '#000000',
  },
}
SCSS
$custom: #af74bd;
$custom-light: #c89dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#af74bd",
  "rgb": {
    "r": 175,
    "g": 116,
    "b": 189
  },
  "hsl": {
    "h": 288.493,
    "s": 35.61,
    "l": 59.804
  },
  "oklch": {
    "l": 0.64668,
    "c": 0.12375,
    "h": 319.8
  },
  "luminance": 0.25279
}

Semantic roles & 50–950 ramp

primary
#AF74BD
secondary
#BED5B8
accent
#CC5C72
background
#FCF9FC
surface
#F8F2F9
border
#D1CCD2
text
#130E14
muted
#827E82

Preview Lab

Preview with #AF74BD

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

Preview Lab → · Contrast checker → · Palette generator →

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