#AF4FBC#AF4FBC

#AF4FBC is a mid, vivid purple. Relative luminance 0.183; OKLCH L 59.1% C 0.184 H 322.7°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#AF4FBC
RGBrgb(175, 79, 188)
HSLhsl(293, 45%, 52%)
HSVhsv(293, 58%, 74%)
CMYKcmyk(6.9%, 58%, 0%, 26.3%)
CIE-LABlab(49.90, 54.66, -40.21)
CIE-LCHlch(49.90, 67.86, 323.66°)
OKLaboklab(59.13% 0.1466 -0.1115)
OKLCHoklch(59.13% 0.184 322.7)
XYZxyz(29.5514, 18.3383, 49.5503)
Luminance0.1834 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4FBC #5CBC4F
analogous
#794FBC #AF4FBC #BC4F93
triadic
#AF4FBC #BCAF4F #4FBCAF
tetradic
#AF4FBC #BC794F #5CBC4F #4F93BC
square
#AF4FBC #BC794F #5CBC4F #4F93BC
split-complementary
#AF4FBC #93BC4F #4FBC79
monochromatic
#612869 #8A3995 #AF4FBC #C37BCD #D7A8DE

Accessibility & contrast

On white

4.50
#AF4FBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#AF4FBC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4FBC
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4FBC#FFFFFF#000000##000000
##AF4FBC1.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C6FBF
Deuteranopia (green-blind)
#5D7BB9
Tritanopia (blue-blind)
#B15F7E
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #af4fbc;
/* rgb */ color: rgb(175, 79, 188);
/* oklch */ color: oklch(59.1% 0.184 322.7);
Tailwind
colors: {
  custom: {
    50: '#ca85d0',
    500: '#af4fbc',
    950: '#000000',
  },
}
SCSS
$custom: #af4fbc;
$custom-light: #ca85d0;
$custom-dark: #000000;
JSON
{
  "hex": "#af4fbc",
  "rgb": {
    "r": 175,
    "g": 79,
    "b": 188
  },
  "hsl": {
    "h": 292.844,
    "s": 44.856,
    "l": 52.353
  },
  "oklch": {
    "l": 0.59128,
    "c": 0.18424,
    "h": 322.7
  },
  "luminance": 0.18337
}

Semantic roles & 50–950 ramp

primary
#AF4FBC
secondary
#A1CB9C
accent
#D55363
background
#FCF8FC
surface
#F9F0F9
border
#D2CBD2
text
#140B14
muted
#827C82

Preview Lab

Preview with #AF4FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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