#AF4FCC#AF4FCC

#AF4FCC is a mid, vivid purple. Relative luminance 0.191; OKLCH L 60.0% C 0.199 H 317.6°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#AF4FCC
RGBrgb(175, 79, 204)
HSLhsl(286, 55%, 55%)
HSVhsv(286, 61%, 80%)
CMYKcmyk(14.2%, 61.3%, 0%, 20%)
CIE-LABlab(50.77, 57.77, -48.07)
CIE-LCHlch(50.77, 75.15, 320.23°)
OKLaboklab(60.03% 0.1473 -0.1344)
OKLCHoklch(60.03% 0.199 317.6)
XYZxyz(31.3727, 19.0668, 59.1427)
Luminance0.1907 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4FCC #6CCC4F
analogous
#704FCC #AF4FCC #CC4FAA
triadic
#AF4FCC #CCAF4F #4FCCAF
tetradic
#AF4FCC #CC704F #6CCC4F #4FAACC
square
#AF4FCC #CC704F #6CCC4F #4FAACC
split-complementary
#AF4FCC #AACC4F #4FCC70
monochromatic
#68247D #9032AC #AF4FCC #C57EDA #DAAEE7

Accessibility & contrast

On white

4.36
#AF4FCC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#AF4FCC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4FCC
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4FCC#FFFFFF#000000##000000
##AF4FCC1.004.364.814.81
#FFFFFF4.361.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B73D0
Deuteranopia (green-blind)
#537CC9
Tritanopia (blue-blind)
#AE6486
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #af4fcc;
/* rgb */ color: rgb(175, 79, 204);
/* oklch */ color: oklch(60.0% 0.199 317.6);
Tailwind
colors: {
  custom: {
    50: '#ca86dc',
    500: '#af4fcc',
    950: '#000000',
  },
}
SCSS
$custom: #af4fcc;
$custom-light: #ca86dc;
$custom-dark: #000000;
JSON
{
  "hex": "#af4fcc",
  "rgb": {
    "r": 175,
    "g": 79,
    "b": 204
  },
  "hsl": {
    "h": 286.08,
    "s": 55.066,
    "l": 55.49
  },
  "oklch": {
    "l": 0.60033,
    "c": 0.19944,
    "h": 317.6
  },
  "luminance": 0.19066
}

Semantic roles & 50–950 ramp

primary
#AF4FCC
secondary
#ADD5A1
accent
#DE496C
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF4FCC

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

Preview Lab → · Contrast checker → · Palette generator →

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