#AF4CB7#AF4CB7

#AF4CB7 is a mid, vivid purple. Relative luminance 0.177; OKLCH L 58.5% C 0.184 H 324.6°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#AF4CB7
RGBrgb(175, 76, 183)
HSLhsl(296, 43%, 51%)
HSVhsv(296, 58%, 72%)
CMYKcmyk(4.4%, 58.5%, 0%, 28.2%)
CIE-LABlab(49.13, 55.12, -38.52)
CIE-LCHlch(49.13, 67.24, 325.05°)
OKLaboklab(58.48% 0.1501 -0.1066)
OKLCHoklch(58.48% 0.184 324.6)
XYZxyz(28.8102, 17.7033, 46.6901)
Luminance0.1770 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4CB7 #54B74C
analogous
#794CB7 #AF4CB7 #B74C89
triadic
#AF4CB7 #B7AF4C #4CB7AF
tetradic
#AF4CB7 #B7794C #54B74C #4C89B7
square
#AF4CB7 #B7794C #54B74C #4C89B7
split-complementary
#AF4CB7 #89B74C #4CB779
monochromatic
#5D2761 #87398D #AF4CB7 #C378C9 #D6A3DA

Accessibility & contrast

On white

4.63
#AF4CB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#AF4CB7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4CB7
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4CB7#FFFFFF#000000##FFFFFF
##AF4CB71.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B6DBA
Deuteranopia (green-blind)
#5E79B4
Tritanopia (blue-blind)
#B35B7A
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #af4cb7;
/* rgb */ color: rgb(175, 76, 183);
/* oklch */ color: oklch(58.5% 0.184 324.6);
Tailwind
colors: {
  custom: {
    50: '#ca84cd',
    500: '#af4cb7',
    950: '#000000',
  },
}
SCSS
$custom: #af4cb7;
$custom-light: #ca84cd;
$custom-dark: #000000;
JSON
{
  "hex": "#af4cb7",
  "rgb": {
    "r": 175,
    "g": 76,
    "b": 183
  },
  "hsl": {
    "h": 295.514,
    "s": 42.629,
    "l": 50.784
  },
  "oklch": {
    "l": 0.58483,
    "c": 0.18411,
    "h": 324.6
  },
  "luminance": 0.17702
}

Semantic roles & 50–950 ramp

primary
#AF4CB7
secondary
#9BC798
accent
#D2555F
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140B13
muted
#827C82

Preview Lab

Preview with #AF4CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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