#AF3FC2#AF3FC2

#AF3FC2 is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 57.6% C 0.212 H 321.5°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#AF3FC2
RGBrgb(175, 63, 194)
HSLhsl(291, 52%, 50%)
HSVhsv(291, 68%, 76%)
CMYKcmyk(9.8%, 67.5%, 0%, 23.9%)
CIE-LABlab(47.71, 62.75, -47.18)
CIE-LCHlch(47.71, 78.51, 323.06°)
OKLaboklab(57.64% 0.1657 -0.1317)
OKLCHoklch(57.64% 0.212 321.5)
XYZxyz(29.1932, 16.5656, 52.6882)
Luminance0.1656 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3FC2 #52C23F
analogous
#6E3FC2 #AF3FC2 #C23F93
triadic
#AF3FC2 #C2AF3F #3FC2AF
tetradic
#AF3FC2 #C26E3F #52C23F #3F93C2
square
#AF3FC2 #C26E3F #52C23F #3F93C2
split-complementary
#AF3FC2 #93C23F #3FC26E
monochromatic
#5C2066 #862F95 #AF3FC2 #C26DD1 #D69CE0

Accessibility & contrast

On white

4.87
#AF3FC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#AF3FC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3FC2
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3FC2#FFFFFF#000000##FFFFFF
##AF3FC21.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1469C6
Deuteranopia (green-blind)
#4F75BF
Tritanopia (blue-blind)
#B1567C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #af3fc2;
/* rgb */ color: rgb(175, 63, 194);
/* oklch */ color: oklch(57.6% 0.212 321.5);
Tailwind
colors: {
  custom: {
    50: '#ca7dd5',
    500: '#af3fc2',
    950: '#000000',
  },
}
SCSS
$custom: #af3fc2;
$custom-light: #ca7dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#af3fc2",
  "rgb": {
    "r": 175,
    "g": 63,
    "b": 194
  },
  "hsl": {
    "h": 291.298,
    "s": 51.779,
    "l": 50.392
  },
  "oklch": {
    "l": 0.57643,
    "c": 0.21169,
    "h": 321.5
  },
  "luminance": 0.16564
}

Semantic roles & 50–950 ramp

primary
#AF3FC2
secondary
#9ACC91
accent
#DB4D61
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140A14
muted
#827C83

Preview Lab

Preview with #AF3FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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