#AF4BAF#AF4BAF

#AF4BAF is a mid, vivid purple. Relative luminance 0.172; OKLCH L 57.9% C 0.178 H 327.6°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#AF4BAF
RGBrgb(175, 75, 175)
HSLhsl(300, 40%, 49%)
HSVhsv(300, 57%, 69%)
CMYKcmyk(0%, 57.1%, 0%, 31.4%)
CIE-LABlab(48.56, 54.13, -34.74)
CIE-LCHlch(48.56, 64.32, 327.31°)
OKLaboklab(57.94% 0.1506 -0.0957)
OKLCHoklch(57.94% 0.178 327.6)
XYZxyz(27.9327, 17.2430, 42.4061)
Luminance0.1724 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4BAF #4BAF4B
analogous
#7D4BAF #AF4BAF #AF4B7D
triadic
#AF4BAF #AFAF4B #4BAFAF
tetradic
#AF4BAF #AF7D4B #4BAF4B #4B7DAF
square
#AF4BAF #AF7D4B #4BAF4B #4B7DAF
split-complementary
#AF4BAF #7DAF4B #4BAF7D
monochromatic
#592659 #843984 #AF4BAF #C374C3 #D69FD6

Accessibility & contrast

On white

4.72
#AF4BAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#AF4BAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4BAF
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4BAF#FFFFFF#000000##FFFFFF
##AF4BAF1.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#406BB2
Deuteranopia (green-blind)
#6178AC
Tritanopia (blue-blind)
#B45776
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af4baf;
/* rgb */ color: rgb(175, 75, 175);
/* oklch */ color: oklch(57.9% 0.178 327.6);
Tailwind
colors: {
  custom: {
    50: '#c983c7',
    500: '#af4baf',
    950: '#000000',
  },
}
SCSS
$custom: #af4baf;
$custom-light: #c983c7;
$custom-dark: #000000;
JSON
{
  "hex": "#af4baf",
  "rgb": {
    "r": 175,
    "g": 75,
    "b": 175
  },
  "hsl": {
    "h": 300,
    "s": 40,
    "l": 49.02
  },
  "oklch": {
    "l": 0.57936,
    "c": 0.17846,
    "h": 327.6
  },
  "luminance": 0.17241
}

Semantic roles & 50–950 ramp

primary
#AF4BAF
secondary
#93C293
accent
#D05858
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140B13
muted
#827C82

Preview Lab

Preview with #AF4BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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