#AF74BC#AF74BC

#AF74BC is a light, vivid purple. Relative luminance 0.252; OKLCH L 64.6% C 0.123 H 320.2°. Best body text is #000000 at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#AF74BC
RGBrgb(175, 116, 188)
HSLhsl(289, 35%, 60%)
HSVhsv(289, 38%, 74%)
CMYKcmyk(6.9%, 38.3%, 0%, 26.3%)
CIE-LABlab(57.31, 35.45, -28.63)
CIE-LCHlch(57.31, 45.57, 321.08°)
OKLaboklab(64.62% 0.0942 -0.0785)
OKLCHoklch(64.62% 0.123 320.2)
XYZxyz(33.0005, 25.2366, 50.7000)
Luminance0.2524 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF74BC #81BC74
analogous
#8B74BC #AF74BC #BC74A5
triadic
#AF74BC #BCAF74 #74BCAF
tetradic
#AF74BC #BC8B74 #81BC74 #74A5BC
square
#AF74BC #BC8B74 #81BC74 #74A5BC
split-complementary
#AF74BC #A5BC74 #74BC8B
monochromatic
#6F3B7B #954FA4 #AF74BC #C79DD0 #DFC7E4

Accessibility & contrast

On white

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

On black

6.05
#AF74BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF74BC
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF74BC#FFFFFF#000000##000000
##AF74BC1.003.476.056.05
#FFFFFF3.471.0021.0021.00
#0000006.0521.001.001.00
##0000006.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B85BF
Deuteranopia (green-blind)
#7A8CBA
Tritanopia (blue-blind)
#B07C8F
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #af74bc;
/* rgb */ color: rgb(175, 116, 188);
/* oklch */ color: oklch(64.6% 0.123 320.2);
Tailwind
colors: {
  custom: {
    50: '#c89dd0',
    500: '#af74bc',
    950: '#000000',
  },
}
SCSS
$custom: #af74bc;
$custom-light: #c89dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#af74bc",
  "rgb": {
    "r": 175,
    "g": 116,
    "b": 188
  },
  "hsl": {
    "h": 289.167,
    "s": 34.951,
    "l": 59.608
  },
  "oklch": {
    "l": 0.64623,
    "c": 0.12265,
    "h": 320.2
  },
  "luminance": 0.25236
}

Semantic roles & 50–950 ramp

primary
#AF74BC
secondary
#BDD4B8
accent
#CB5D71
background
#FCF9FC
surface
#F8F2F9
border
#D1CCD2
text
#130E14
muted
#827E82

Preview Lab

Preview with #AF74BC

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

Preview Lab → · Contrast checker → · Palette generator →

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