#AF74BF#AF74BF

#AF74BF is a light, vivid purple. Relative luminance 0.254; OKLCH L 64.8% C 0.126 H 318.9°. Best body text is #000000 at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#AF74BF
RGBrgb(175, 116, 191)
HSLhsl(287, 37%, 60%)
HSVhsv(287, 39%, 75%)
CMYKcmyk(8.4%, 39.3%, 0%, 25.1%)
CIE-LABlab(57.43, 36.06, -30.15)
CIE-LCHlch(57.43, 47.00, 320.11°)
OKLaboklab(64.76% 0.0949 -0.0828)
OKLCHoklch(64.76% 0.126 318.9)
XYZxyz(33.3273, 25.3673, 52.4209)
Luminance0.2537 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF74BF #84BF74
analogous
#8974BF #AF74BF #BF74A9
triadic
#AF74BF #BFAF74 #74BFAF
tetradic
#AF74BF #BF8974 #84BF74 #74A9BF
square
#AF74BF #BF8974 #84BF74 #74A9BF
split-complementary
#AF74BF #A9BF74 #74BF89
monochromatic
#703A7E #954DA8 #AF74BF #C79ED2 #DFC8E6

Accessibility & contrast

On white

3.46
#AF74BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.07
#AF74BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF74BF
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF74BF#FFFFFF#000000##000000
##AF74BF1.003.466.076.07
#FFFFFF3.461.0021.0021.00
#0000006.0721.001.001.00
##0000006.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6986C2
Deuteranopia (green-blind)
#788CBD
Tritanopia (blue-blind)
#B07D91
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #af74bf;
/* rgb */ color: rgb(175, 116, 191);
/* oklch */ color: oklch(64.8% 0.126 318.9);
Tailwind
colors: {
  custom: {
    50: '#c89dd2',
    500: '#af74bf',
    950: '#000000',
  },
}
SCSS
$custom: #af74bf;
$custom-light: #c89dd2;
$custom-dark: #000000;
JSON
{
  "hex": "#af74bf",
  "rgb": {
    "r": 175,
    "g": 116,
    "b": 191
  },
  "hsl": {
    "h": 287.2,
    "s": 36.946,
    "l": 60.196
  },
  "oklch": {
    "l": 0.64759,
    "c": 0.12596,
    "h": 318.9
  },
  "luminance": 0.25366
}

Semantic roles & 50–950 ramp

primary
#AF74BF
secondary
#BFD6B9
accent
#B03650
background
#FCF9FC
surface
#F8F2F9
border
#D1CCD2
text
#130E14
muted
#827E82

Preview Lab

Preview with #AF74BF

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

Preview Lab → · Contrast checker → · Palette generator →

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