#AF2BC6#AF2BC6

#AF2BC6 is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 56.2% C 0.236 H 321.1°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#AF2BC6
RGBrgb(175, 43, 198)
HSLhsl(291, 64%, 47%)
HSVhsv(291, 78%, 78%)
CMYKcmyk(11.6%, 78.3%, 0%, 22.4%)
CIE-LABlab(45.53, 70.38, -52.99)
CIE-LCHlch(45.53, 88.10, 323.02°)
OKLaboklab(56.17% 0.184 -0.1486)
OKLCHoklch(56.17% 0.236 321.1)
XYZxyz(28.7349, 14.9205, 54.7815)
Luminance0.1492 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2BC6 #42C62B
analogous
#622BC6 #AF2BC6 #C62B8F
triadic
#AF2BC6 #C6AF2B #2BC6AF
tetradic
#AF2BC6 #C6622B #42C62B #2B8FC6
square
#AF2BC6 #C6622B #42C62B #2B8FC6
split-complementary
#AF2BC6 #8FC62B #2BC662
monochromatic
#561561 #832094 #AF2BC6 #C654DA #D787E5

Accessibility & contrast

On white

5.27
#AF2BC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#AF2BC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2BC6
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2BC6#FFFFFF#000000##FFFFFF
##AF2BC61.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CA
Deuteranopia (green-blind)
#3F70C3
Tritanopia (blue-blind)
#B04C79
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #af2bc6;
/* rgb */ color: rgb(175, 43, 198);
/* oklch */ color: oklch(56.2% 0.236 321.1);
Tailwind
colors: {
  custom: {
    50: '#cb74d8',
    500: '#af2bc6',
    950: '#000000',
  },
}
SCSS
$custom: #af2bc6;
$custom-light: #cb74d8;
$custom-dark: #000000;
JSON
{
  "hex": "#af2bc6",
  "rgb": {
    "r": 175,
    "g": 43,
    "b": 198
  },
  "hsl": {
    "h": 291.097,
    "s": 64.315,
    "l": 47.255
  },
  "oklch": {
    "l": 0.56165,
    "c": 0.23649,
    "h": 321.1
  },
  "luminance": 0.14919
}

Semantic roles & 50–950 ramp

primary
#AF2BC6
secondary
#8ACE7F
accent
#E74059
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#140914
muted
#837B83

Preview Lab

Preview with #AF2BC6

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

Preview Lab → · Contrast checker → · Palette generator →

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