#AF4FC2#AF4FC2

#AF4FC2 is a mid, vivid purple. Relative luminance 0.186; OKLCH L 59.5% C 0.190 H 320.7°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#AF4FC2
RGBrgb(175, 79, 194)
HSLhsl(290, 49%, 54%)
HSVhsv(290, 59%, 76%)
CMYKcmyk(9.8%, 59.3%, 0%, 23.9%)
CIE-LABlab(50.22, 55.81, -43.18)
CIE-LCHlch(50.22, 70.56, 322.27°)
OKLaboklab(59.46% 0.147 -0.1202)
OKLCHoklch(59.46% 0.19 320.7)
XYZxyz(30.2116, 18.6024, 53.0277)
Luminance0.1860 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4FC2 #62C24F
analogous
#754FC2 #AF4FC2 #C24F9B
triadic
#AF4FC2 #C2AF4F #4FC2AF
tetradic
#AF4FC2 #C2754F #62C24F #4F9BC2
square
#AF4FC2 #C2754F #62C24F #4F9BC2
split-complementary
#AF4FC2 #9BC24F #4FC275
monochromatic
#642770 #8C379D #AF4FC2 #C47CD2 #D8AAE2

Accessibility & contrast

On white

4.45
#AF4FC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#AF4FC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4FC2
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4FC2#FFFFFF#000000##000000
##AF4FC21.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3671C6
Deuteranopia (green-blind)
#5A7BBF
Tritanopia (blue-blind)
#B06181
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #af4fc2;
/* rgb */ color: rgb(175, 79, 194);
/* oklch */ color: oklch(59.5% 0.190 320.7);
Tailwind
colors: {
  custom: {
    50: '#ca86d5',
    500: '#af4fc2',
    950: '#000000',
  },
}
SCSS
$custom: #af4fc2;
$custom-light: #ca86d5;
$custom-dark: #000000;
JSON
{
  "hex": "#af4fc2",
  "rgb": {
    "r": 175,
    "g": 79,
    "b": 194
  },
  "hsl": {
    "h": 290.087,
    "s": 48.523,
    "l": 53.529
  },
  "oklch": {
    "l": 0.59459,
    "c": 0.18988,
    "h": 320.7
  },
  "luminance": 0.18601
}

Semantic roles & 50–950 ramp

primary
#AF4FC2
secondary
#A6CF9E
accent
#D85066
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#140B14
muted
#827C83

Preview Lab

Preview with #AF4FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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