#AF42BA#AF42BA

#AF42BA is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 57.5% C 0.201 H 323.9°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#AF42BA
RGBrgb(175, 66, 186)
HSLhsl(295, 48%, 49%)
HSVhsv(295, 65%, 73%)
CMYKcmyk(5.9%, 64.5%, 0%, 27.1%)
CIE-LABlab(47.70, 60.06, -42.54)
CIE-LCHlch(47.70, 73.60, 324.69°)
OKLaboklab(57.49% 0.1624 -0.1182)
OKLCHoklch(57.49% 0.201 323.9)
XYZxyz(28.4896, 16.5572, 48.1401)
Luminance0.1656 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF42BA #4DBA42
analogous
#7342BA #AF42BA #BA4289
triadic
#AF42BA #BAAF42 #42BAAF
tetradic
#AF42BA #BA7342 #4DBA42 #4289BA
square
#AF42BA #BA7342 #4DBA42 #4289BA
split-complementary
#AF42BA #89BA42 #42BA73
monochromatic
#5A2260 #85328D #AF42BA #C36ECB #D69BDB

Accessibility & contrast

On white

4.87
#AF42BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#AF42BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF42BA
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF42BA#FFFFFF#000000##FFFFFF
##AF42BA1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2969BE
Deuteranopia (green-blind)
#5676B7
Tritanopia (blue-blind)
#B25478
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #af42ba;
/* rgb */ color: rgb(175, 66, 186);
/* oklch */ color: oklch(57.5% 0.201 323.9);
Tailwind
colors: {
  custom: {
    50: '#ca7ecf',
    500: '#af42ba',
    950: '#000000',
  },
}
SCSS
$custom: #af42ba;
$custom-light: #ca7ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#af42ba",
  "rgb": {
    "r": 175,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 294.5,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.5749,
    "c": 0.20086,
    "h": 323.9
  },
  "luminance": 0.16556
}

Semantic roles & 50–950 ramp

primary
#AF42BA
secondary
#95C890
accent
#D7515D
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140A14
muted
#827C82

Preview Lab

Preview with #AF42BA

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

Preview Lab → · Contrast checker → · Palette generator →

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