#AF2DBA#AF2DBA

#AF2DBA is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.6% C 0.225 H 324.5°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#AF2DBA
RGBrgb(175, 45, 186)
HSLhsl(295, 61%, 45%)
HSVhsv(295, 76%, 73%)
CMYKcmyk(5.9%, 75.8%, 0%, 27.1%)
CIE-LABlab(44.99, 67.71, -46.84)
CIE-LCHlch(44.99, 82.34, 325.32°)
OKLaboklab(55.55% 0.1834 -0.1306)
OKLCHoklch(55.55% 0.225 324.5)
XYZxyz(27.4798, 14.5377, 47.8035)
Luminance0.1454 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2DBA #38BA2D
analogous
#682DBA #AF2DBA #BA2D7F
triadic
#AF2DBA #BAAF2D #2DBAAF
tetradic
#AF2DBA #BA682D #38BA2D #2D7FBA
square
#AF2DBA #BA682D #38BA2D #2D7FBA
split-complementary
#AF2DBA #7FBA2D #2DBA68
monochromatic
#521557 #812189 #AF2DBA #CA50D5 #D981E0

Accessibility & contrast

On white

5.37
#AF2DBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#AF2DBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2DBA
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2DBA#FFFFFF#000000##FFFFFF
##AF2DBA1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BE
Deuteranopia (green-blind)
#4A70B7
Tritanopia (blue-blind)
#B34772
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af2dba;
/* rgb */ color: rgb(175, 45, 186);
/* oklch */ color: oklch(55.6% 0.225 324.5);
Tailwind
colors: {
  custom: {
    50: '#cb75cf',
    500: '#af2dba',
    950: '#000000',
  },
}
SCSS
$custom: #af2dba;
$custom-light: #cb75cf;
$custom-dark: #000000;
JSON
{
  "hex": "#af2dba",
  "rgb": {
    "r": 175,
    "g": 45,
    "b": 186
  },
  "hsl": {
    "h": 295.319,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.55553,
    "c": 0.22519,
    "h": 324.5
  },
  "luminance": 0.14536
}

Semantic roles & 50–950 ramp

primary
#AF2DBA
secondary
#80C979
accent
#E44450
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140914
muted
#827B82

Preview Lab

Preview with #AF2DBA

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

Preview Lab → · Contrast checker → · Palette generator →

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