#AF42B2#AF42B2

#AF42B2 is a mid, vivid purple. Relative luminance 0.162; OKLCH L 57.0% C 0.194 H 326.7°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#AF42B2
RGBrgb(175, 66, 178)
HSLhsl(298, 46%, 48%)
HSVhsv(298, 63%, 70%)
CMYKcmyk(1.7%, 62.9%, 0%, 30.2%)
CIE-LABlab(47.27, 58.64, -38.54)
CIE-LCHlch(47.27, 70.17, 326.69°)
OKLaboklab(57.04% 0.1621 -0.1066)
OKLCHoklch(57.04% 0.194 326.7)
XYZxyz(27.6628, 16.2265, 43.7858)
Luminance0.1623 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF42B2 #45B242
analogous
#7742B2 #AF42B2 #B2427D
triadic
#AF42B2 #B2AF42 #42B2AF
tetradic
#AF42B2 #B27742 #45B242 #427DB2
square
#AF42B2 #B27742 #45B242 #427DB2
split-complementary
#AF42B2 #7DB242 #42B277
monochromatic
#572159 #833185 #AF42B2 #C56AC8 #D696D8

Accessibility & contrast

On white

4.95
#AF42B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#AF42B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF42B2
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF42B2#FFFFFF#000000##FFFFFF
##AF42B21.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3267B5
Deuteranopia (green-blind)
#5A75AF
Tritanopia (blue-blind)
#B45174
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af42b2;
/* rgb */ color: rgb(175, 66, 178);
/* oklch */ color: oklch(57.0% 0.194 326.7);
Tailwind
colors: {
  custom: {
    50: '#ca7ec9',
    500: '#af42b2',
    950: '#000000',
  },
}
SCSS
$custom: #af42b2;
$custom-light: #ca7ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#af42b2",
  "rgb": {
    "r": 175,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 298.393,
    "s": 45.902,
    "l": 47.843
  },
  "oklch": {
    "l": 0.57043,
    "c": 0.19397,
    "h": 326.7
  },
  "luminance": 0.16225
}

Semantic roles & 50–950 ramp

primary
#AF42B2
secondary
#8DC48C
accent
#D65256
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF42B2

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

Preview Lab → · Contrast checker → · Palette generator →

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