#AF2BB8#AF2BB8

#AF2BB8 is a mid, highly saturated purple. Relative luminance 0.143; OKLCH L 55.3% C 0.226 H 325.2°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#AF2BB8
RGBrgb(175, 43, 184)
HSLhsl(296, 62%, 45%)
HSVhsv(296, 77%, 72%)
CMYKcmyk(4.9%, 76.6%, 0%, 27.8%)
CIE-LABlab(44.67, 67.98, -46.20)
CIE-LCHlch(44.67, 82.19, 325.80°)
OKLaboklab(55.28% 0.1852 -0.1287)
OKLCHoklch(55.28% 0.226 325.2)
XYZxyz(27.1942, 14.3042, 46.6668)
Luminance0.1430 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2BB8 #34B82B
analogous
#682BB8 #AF2BB8 #B82B7B
triadic
#AF2BB8 #B8AF2B #2BB8AF
tetradic
#AF2BB8 #B8682B #34B82B #2B7BB8
square
#AF2BB8 #B8682B #34B82B #2B7BB8
split-complementary
#AF2BB8 #7BB82B #2BB868
monochromatic
#511455 #801F86 #AF2BB8 #CC4BD5 #DA7DE1

Accessibility & contrast

On white

5.44
#AF2BB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#AF2BB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2BB8
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2BB8#FFFFFF#000000##FFFFFF
##AF2BB81.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBC
Deuteranopia (green-blind)
#4A6FB5
Tritanopia (blue-blind)
#B34571
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af2bb8;
/* rgb */ color: rgb(175, 43, 184);
/* oklch */ color: oklch(55.3% 0.226 325.2);
Tailwind
colors: {
  custom: {
    50: '#cb74ce',
    500: '#af2bb8',
    950: '#000000',
  },
}
SCSS
$custom: #af2bb8;
$custom-light: #cb74ce;
$custom-dark: #000000;
JSON
{
  "hex": "#af2bb8",
  "rgb": {
    "r": 175,
    "g": 43,
    "b": 184
  },
  "hsl": {
    "h": 296.17,
    "s": 62.115,
    "l": 44.51
  },
  "oklch": {
    "l": 0.55281,
    "c": 0.22554,
    "h": 325.2
  },
  "luminance": 0.14302
}

Semantic roles & 50–950 ramp

primary
#AF2BB8
secondary
#7BC976
accent
#E5434D
background
#FDF7FC
surface
#FAEDF9
border
#D3C8D2
text
#140914
muted
#837B82

Preview Lab

Preview with #AF2BB8

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

Preview Lab → · Contrast checker → · Palette generator →

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