#AF2DB8#AF2DB8

#AF2DB8 is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.4% C 0.224 H 325.2°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#AF2DB8
RGBrgb(175, 45, 184)
HSLhsl(296, 61%, 45%)
HSVhsv(296, 76%, 72%)
CMYKcmyk(4.9%, 75.5%, 0%, 27.8%)
CIE-LABlab(44.88, 67.37, -45.86)
CIE-LCHlch(44.88, 81.50, 325.76°)
OKLaboklab(55.43% 0.1836 -0.1277)
OKLCHoklch(55.43% 0.224 325.2)
XYZxyz(27.2687, 14.4532, 46.6916)
Luminance0.1445 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2DB8 #36B82D
analogous
#692DB8 #AF2DB8 #B82D7C
triadic
#AF2DB8 #B8AF2D #2DB8AF
tetradic
#AF2DB8 #B8692D #36B82D #2D7CB8
square
#AF2DB8 #B8692D #36B82D #2D7CB8
split-complementary
#AF2DB8 #7CB82D #2DB869
monochromatic
#511556 #802187 #AF2DB8 #CB4ED4 #DA80E0

Accessibility & contrast

On white

5.40
#AF2DB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#AF2DB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2DB8
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2DB8#FFFFFF#000000##FFFFFF
##AF2DB81.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BC
Deuteranopia (green-blind)
#4B6FB5
Tritanopia (blue-blind)
#B34671
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af2db8;
/* rgb */ color: rgb(175, 45, 184);
/* oklch */ color: oklch(55.4% 0.224 325.2);
Tailwind
colors: {
  custom: {
    50: '#cb74ce',
    500: '#af2db8',
    950: '#000000',
  },
}
SCSS
$custom: #af2db8;
$custom-light: #cb74ce;
$custom-dark: #000000;
JSON
{
  "hex": "#af2db8",
  "rgb": {
    "r": 175,
    "g": 45,
    "b": 184
  },
  "hsl": {
    "h": 296.115,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.55431,
    "c": 0.22362,
    "h": 325.2
  },
  "luminance": 0.14451
}

Semantic roles & 50–950 ramp

primary
#AF2DB8
secondary
#7DC978
accent
#E4444E
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140914
muted
#827B82

Preview Lab

Preview with #AF2DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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