#AF2FC0#AF2FC0

#AF2FC0 is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 56.1% C 0.228 H 322.7°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#AF2FC0
RGBrgb(175, 47, 192)
HSLhsl(293, 61%, 47%)
HSVhsv(293, 76%, 75%)
CMYKcmyk(8.9%, 75.5%, 0%, 24.7%)
CIE-LABlab(45.57, 68.12, -49.43)
CIE-LCHlch(45.57, 84.17, 324.04°)
OKLaboklab(56.08% 0.1813 -0.1382)
OKLCHoklch(56.08% 0.228 322.7)
XYZxyz(28.2092, 14.9544, 51.2596)
Luminance0.1495 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2FC0 #40C02F
analogous
#672FC0 #AF2FC0 #C02F88
triadic
#AF2FC0 #C0AF2F #2FC0AF
tetradic
#AF2FC0 #C0672F #40C02F #2F88C0
square
#AF2FC0 #C0672F #40C02F #2F88C0
split-complementary
#AF2FC0 #88C02F #2FC067
monochromatic
#55175E #82238F #AF2FC0 #C756D6 #D788E2

Accessibility & contrast

On white

5.26
#AF2FC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#AF2FC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2FC0
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2FC0#FFFFFF#000000##FFFFFF
##AF2FC01.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C4
Deuteranopia (green-blind)
#4671BD
Tritanopia (blue-blind)
#B14B76
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #af2fc0;
/* rgb */ color: rgb(175, 47, 192);
/* oklch */ color: oklch(56.1% 0.228 322.7);
Tailwind
colors: {
  custom: {
    50: '#cb76d4',
    500: '#af2fc0',
    950: '#000000',
  },
}
SCSS
$custom: #af2fc0;
$custom-light: #cb76d4;
$custom-dark: #000000;
JSON
{
  "hex": "#af2fc0",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 192
  },
  "hsl": {
    "h": 292.966,
    "s": 60.669,
    "l": 46.863
  },
  "oklch": {
    "l": 0.56079,
    "c": 0.22797,
    "h": 322.7
  },
  "luminance": 0.14953
}

Semantic roles & 50–950 ramp

primary
#AF2FC0
secondary
#88CB7F
accent
#E44457
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#140914
muted
#837B83

Preview Lab

Preview with #AF2FC0

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

Preview Lab → · Contrast checker → · Palette generator →

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