#AF2BC2#AF2BC2

#AF2BC2 is a mid, highly saturated purple. Relative luminance 0.147; OKLCH L 55.9% C 0.233 H 322.2°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#AF2BC2
RGBrgb(175, 43, 194)
HSLhsl(292, 64%, 46%)
HSVhsv(292, 78%, 76%)
CMYKcmyk(9.8%, 77.8%, 0%, 23.9%)
CIE-LABlab(45.27, 69.69, -51.07)
CIE-LCHlch(45.27, 86.40, 323.76°)
OKLaboklab(55.91% 0.1844 -0.1429)
OKLCHoklch(55.91% 0.233 322.2)
XYZxyz(28.2797, 14.7384, 52.3837)
Luminance0.1474 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2BC2 #3EC22B
analogous
#642BC2 #AF2BC2 #C22B8A
triadic
#AF2BC2 #C2AF2B #2BC2AF
tetradic
#AF2BC2 #C2642B #3EC22B #2B8AC2
square
#AF2BC2 #C2642B #3EC22B #2B8AC2
split-complementary
#AF2BC2 #8AC22B #2BC264
monochromatic
#55155E #822090 #AF2BC2 #C852D9 #D884E4

Accessibility & contrast

On white

5.32
#AF2BC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#AF2BC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2BC2
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2BC2#FFFFFF#000000##FFFFFF
##AF2BC21.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C6
Deuteranopia (green-blind)
#4270BF
Tritanopia (blue-blind)
#B14A76
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #af2bc2;
/* rgb */ color: rgb(175, 43, 194);
/* oklch */ color: oklch(55.9% 0.233 322.2);
Tailwind
colors: {
  custom: {
    50: '#cb74d5',
    500: '#af2bc2',
    950: '#000000',
  },
}
SCSS
$custom: #af2bc2;
$custom-light: #cb74d5;
$custom-dark: #000000;
JSON
{
  "hex": "#af2bc2",
  "rgb": {
    "r": 175,
    "g": 43,
    "b": 194
  },
  "hsl": {
    "h": 292.45,
    "s": 63.713,
    "l": 46.471
  },
  "oklch": {
    "l": 0.55907,
    "c": 0.23334,
    "h": 322.2
  },
  "luminance": 0.14737
}

Semantic roles & 50–950 ramp

primary
#AF2BC2
secondary
#86CD7C
accent
#E74156
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#140914
muted
#837B83

Preview Lab

Preview with #AF2BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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