#AF2DBB#AF2DBB

#AF2DBB is a mid, highly saturated purple. Relative luminance 0.146; OKLCH L 55.6% C 0.226 H 324.2°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#AF2DBB
RGBrgb(175, 45, 187)
HSLhsl(295, 61%, 45%)
HSVhsv(295, 76%, 73%)
CMYKcmyk(6.4%, 75.9%, 0%, 26.7%)
CIE-LABlab(45.05, 67.88, -47.33)
CIE-LCHlch(45.05, 82.76, 325.11°)
OKLaboklab(55.61% 0.1834 -0.132)
OKLCHoklch(55.61% 0.226 324.2)
XYZxyz(27.5865, 14.5803, 48.3653)
Luminance0.1458 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2DBB #39BB2D
analogous
#682DBB #AF2DBB #BB2D80
triadic
#AF2DBB #BBAF2D #2DBBAF
tetradic
#AF2DBB #BB682D #39BB2D #2D80BB
square
#AF2DBB #BB682D #39BB2D #2D80BB
split-complementary
#AF2DBB #80BB2D #2DBB68
monochromatic
#531558 #81218A #AF2DBB #CA50D5 #D982E1

Accessibility & contrast

On white

5.36
#AF2DBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#AF2DBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2DBB
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2DBB#FFFFFF#000000##FFFFFF
##AF2DBB1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BF
Deuteranopia (green-blind)
#4970B8
Tritanopia (blue-blind)
#B24873
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #af2dbb;
/* rgb */ color: rgb(175, 45, 187);
/* oklch */ color: oklch(55.6% 0.226 324.2);
Tailwind
colors: {
  custom: {
    50: '#cb75d0',
    500: '#af2dbb',
    950: '#000000',
  },
}
SCSS
$custom: #af2dbb;
$custom-light: #cb75d0;
$custom-dark: #000000;
JSON
{
  "hex": "#af2dbb",
  "rgb": {
    "r": 175,
    "g": 45,
    "b": 187
  },
  "hsl": {
    "h": 294.93,
    "s": 61.207,
    "l": 45.49
  },
  "oklch": {
    "l": 0.55614,
    "c": 0.22597,
    "h": 324.2
  },
  "luminance": 0.14579
}

Semantic roles & 50–950 ramp

primary
#AF2DBB
secondary
#81CA7A
accent
#E44351
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140914
muted
#827B82

Preview Lab

Preview with #AF2DBB

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

Preview Lab → · Contrast checker → · Palette generator →

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