#AF42BE#AF42BE

#AF42BE is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 57.7% C 0.204 H 322.7°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#AF42BE
RGBrgb(175, 66, 190)
HSLhsl(293, 49%, 50%)
HSVhsv(293, 65%, 75%)
CMYKcmyk(7.9%, 65.3%, 0%, 25.5%)
CIE-LABlab(47.92, 60.79, -44.52)
CIE-LCHlch(47.92, 75.35, 323.78°)
OKLaboklab(57.72% 0.1625 -0.124)
OKLCHoklch(57.72% 0.204 322.7)
XYZxyz(28.9207, 16.7297, 50.4110)
Luminance0.1673 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF42BE #51BE42
analogous
#7142BE #AF42BE #BE428F
triadic
#AF42BE #BEAF42 #42BEAF
tetradic
#AF42BE #BE7142 #51BE42 #428FBE
square
#AF42BE #BE7142 #51BE42 #428FBE
split-complementary
#AF42BE #8FBE42 #42BE71
monochromatic
#5C2263 #853291 #AF42BE #C270CE #D69DDD

Accessibility & contrast

On white

4.83
#AF42BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#AF42BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF42BE
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF42BE#FFFFFF#000000##FFFFFF
##AF42BE1.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#236AC2
Deuteranopia (green-blind)
#5376BB
Tritanopia (blue-blind)
#B1567A
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #af42be;
/* rgb */ color: rgb(175, 66, 190);
/* oklch */ color: oklch(57.7% 0.204 322.7);
Tailwind
colors: {
  custom: {
    50: '#ca7ed2',
    500: '#af42be',
    950: '#000000',
  },
}
SCSS
$custom: #af42be;
$custom-light: #ca7ed2;
$custom-dark: #000000;
JSON
{
  "hex": "#af42be",
  "rgb": {
    "r": 175,
    "g": 66,
    "b": 190
  },
  "hsl": {
    "h": 292.742,
    "s": 48.819,
    "l": 50.196
  },
  "oklch": {
    "l": 0.57721,
    "c": 0.20435,
    "h": 322.7
  },
  "luminance": 0.16728
}

Semantic roles & 50–950 ramp

primary
#AF42BE
secondary
#99CA92
accent
#D84F60
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140B14
muted
#827C82

Preview Lab

Preview with #AF42BE

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

Preview Lab → · Contrast checker → · Palette generator →

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