#AF2BA6#AF2BA6

#AF2BA6 is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.2% C 0.212 H 331.1°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#AF2BA6
RGBrgb(175, 43, 166)
HSLhsl(304, 61%, 43%)
HSVhsv(304, 75%, 69%)
CMYKcmyk(0%, 75.4%, 5.1%, 31.4%)
CIE-LABlab(43.65, 65.06, -37.17)
CIE-LCHlch(43.65, 74.93, 330.26°)
OKLaboklab(54.23% 0.1856 -0.1024)
OKLCHoklch(54.23% 0.212 331.1)
XYZxyz(25.4260, 13.5969, 37.3543)
Luminance0.1359 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2BA6 #2BAF34
analogous
#762BAF #AF2BA6 #AF2B64
triadic
#AF2BA6 #A6AF2B #2BA6AF
tetradic
#AF2BA6 #AF762B #2BAF34 #2B64AF
square
#AF2BA6 #AF762B #2BAF34 #2B64AF
split-complementary
#AF2BA6 #64AF2B #2BAF76
monochromatic
#4D1349 #7E1F77 #AF2BA6 #D146C8 #DE77D7

Accessibility & contrast

On white

5.65
#AF2BA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#AF2BA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2BA6
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2BA6#FFFFFF#000000##FFFFFF
##AF2BA61.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D5CA9
Deuteranopia (green-blind)
#556DA3
Tritanopia (blue-blind)
#B63C67
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af2ba6;
/* rgb */ color: rgb(175, 43, 166);
/* oklch */ color: oklch(54.2% 0.212 331.1);
Tailwind
colors: {
  custom: {
    50: '#cb73c1',
    500: '#af2ba6',
    950: '#000000',
  },
}
SCSS
$custom: #af2ba6;
$custom-light: #cb73c1;
$custom-dark: #000000;
JSON
{
  "hex": "#af2ba6",
  "rgb": {
    "r": 175,
    "g": 43,
    "b": 166
  },
  "hsl": {
    "h": 304.091,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.54229,
    "c": 0.21196,
    "h": 331.1
  },
  "luminance": 0.13595
}

Semantic roles & 50–950 ramp

primary
#AF2BA6
secondary
#70C576
accent
#E44F44
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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