#AF2BA8#AF2BA8

#AF2BA8 is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.3% C 0.213 H 330.4°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#AF2BA8
RGBrgb(175, 43, 168)
HSLhsl(303, 61%, 43%)
HSVhsv(303, 75%, 69%)
CMYKcmyk(0%, 75.4%, 4%, 31.4%)
CIE-LABlab(43.76, 65.37, -38.19)
CIE-LCHlch(43.76, 75.71, 329.71°)
OKLaboklab(54.34% 0.1856 -0.1054)
OKLCHoklch(54.34% 0.213 330.4)
XYZxyz(25.6109, 13.6709, 38.3281)
Luminance0.1367 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2BA8 #2BAF32
analogous
#742BAF #AF2BA8 #AF2B66
triadic
#AF2BA8 #A8AF2B #2BA8AF
tetradic
#AF2BA8 #AF742B #2BAF32 #2B66AF
square
#AF2BA8 #AF742B #2BAF32 #2B66AF
split-complementary
#AF2BA8 #66AF2B #2BAF74
monochromatic
#4D134A #7E1F79 #AF2BA8 #D146CA #DE77D8

Accessibility & contrast

On white

5.62
#AF2BA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#AF2BA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2BA8
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2BA8#FFFFFF#000000##FFFFFF
##AF2BA81.005.623.735.62
#FFFFFF5.621.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A5CAB
Deuteranopia (green-blind)
#546EA5
Tritanopia (blue-blind)
#B63D68
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af2ba8;
/* rgb */ color: rgb(175, 43, 168);
/* oklch */ color: oklch(54.3% 0.213 330.4);
Tailwind
colors: {
  custom: {
    50: '#cb73c2',
    500: '#af2ba8',
    950: '#000000',
  },
}
SCSS
$custom: #af2ba8;
$custom-light: #cb73c2;
$custom-dark: #000000;
JSON
{
  "hex": "#af2ba8",
  "rgb": {
    "r": 175,
    "g": 43,
    "b": 168
  },
  "hsl": {
    "h": 303.182,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.54341,
    "c": 0.21344,
    "h": 330.4
  },
  "luminance": 0.13669
}

Semantic roles & 50–950 ramp

primary
#AF2BA8
secondary
#70C575
accent
#E44D44
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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