#AF2DA8#AF2DA8

#AF2DA8 is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.5% C 0.211 H 330.4°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#AF2DA8
RGBrgb(175, 45, 168)
HSLhsl(303, 59%, 43%)
HSVhsv(303, 74%, 69%)
CMYKcmyk(0%, 74.3%, 4%, 31.4%)
CIE-LABlab(43.97, 64.75, -37.84)
CIE-LCHlch(43.97, 75.00, 329.70°)
OKLaboklab(54.5% 0.1838 -0.1044)
OKLCHoklch(54.5% 0.211 330.4)
XYZxyz(25.6854, 13.8199, 38.3529)
Luminance0.1382 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2DA8 #2DAF34
analogous
#752DAF #AF2DA8 #AF2D67
triadic
#AF2DA8 #A8AF2D #2DA8AF
tetradic
#AF2DA8 #AF752D #2DAF34 #2D67AF
square
#AF2DA8 #AF752D #2DAF34 #2D67AF
split-complementary
#AF2DA8 #67AF2D #2DAF75
monochromatic
#4E144B #7E2079 #AF2DA8 #D049C9 #DD7AD7

Accessibility & contrast

On white

5.58
#AF2DA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#AF2DA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2DA8
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2DA8#FFFFFF#000000##FFFFFF
##AF2DA81.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E5DAB
Deuteranopia (green-blind)
#556EA5
Tritanopia (blue-blind)
#B63E68
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af2da8;
/* rgb */ color: rgb(175, 45, 168);
/* oklch */ color: oklch(54.5% 0.211 330.4);
Tailwind
colors: {
  custom: {
    50: '#cb74c2',
    500: '#af2da8',
    950: '#000000',
  },
}
SCSS
$custom: #af2da8;
$custom-light: #cb74c2;
$custom-dark: #000000;
JSON
{
  "hex": "#af2da8",
  "rgb": {
    "r": 175,
    "g": 45,
    "b": 168
  },
  "hsl": {
    "h": 303.231,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.54496,
    "c": 0.2114,
    "h": 330.4
  },
  "luminance": 0.13818
}

Semantic roles & 50–950 ramp

primary
#AF2DA8
secondary
#73C577
accent
#E24E46
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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