#AF4FB7#AF4FB7

#AF4FB7 is a mid, vivid purple. Relative luminance 0.181; OKLCH L 58.9% C 0.180 H 324.5°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#AF4FB7
RGBrgb(175, 79, 183)
HSLhsl(295, 42%, 51%)
HSVhsv(295, 57%, 72%)
CMYKcmyk(4.4%, 56.8%, 0%, 28.2%)
CIE-LABlab(49.65, 53.72, -37.71)
CIE-LCHlch(49.65, 65.63, 324.94°)
OKLaboklab(58.86% 0.1462 -0.1043)
OKLCHoklch(58.86% 0.18 324.5)
XYZxyz(29.0217, 18.1264, 46.7606)
Luminance0.1812 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4FB7 #57B74F
analogous
#7B4FB7 #AF4FB7 #B74F8B
triadic
#AF4FB7 #B7AF4F #4FB7AF
tetradic
#AF4FB7 #B77B4F #57B74F #4F8BB7
square
#AF4FB7 #B77B4F #57B74F #4F8BB7
split-complementary
#AF4FB7 #8BB74F #4FB77B
monochromatic
#5F2963 #883A8F #AF4FB7 #C37AC9 #D6A6DB

Accessibility & contrast

On white

4.54
#AF4FB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#AF4FB7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4FB7
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4FB7#FFFFFF#000000##000000
##AF4FB71.004.544.634.63
#FFFFFF4.541.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#406FBA
Deuteranopia (green-blind)
#607AB4
Tritanopia (blue-blind)
#B25D7C
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #af4fb7;
/* rgb */ color: rgb(175, 79, 183);
/* oklch */ color: oklch(58.9% 0.180 324.5);
Tailwind
colors: {
  custom: {
    50: '#c985cd',
    500: '#af4fb7',
    950: '#000000',
  },
}
SCSS
$custom: #af4fb7;
$custom-light: #c985cd;
$custom-dark: #000000;
JSON
{
  "hex": "#af4fb7",
  "rgb": {
    "r": 175,
    "g": 79,
    "b": 183
  },
  "hsl": {
    "h": 295.385,
    "s": 41.935,
    "l": 51.373
  },
  "oklch": {
    "l": 0.58859,
    "c": 0.17961,
    "h": 324.5
  },
  "luminance": 0.18125
}

Semantic roles & 50–950 ramp

primary
#AF4FB7
secondary
#9EC89A
accent
#D25660
background
#FCF8FC
surface
#F9F0F9
border
#D2CBD2
text
#130B13
muted
#827C82

Preview Lab

Preview with #AF4FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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