#AF43B2#AF43B2

#AF43B2 is a mid, vivid purple. Relative luminance 0.163; OKLCH L 57.2% C 0.193 H 326.6°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#AF43B2
RGBrgb(175, 67, 178)
HSLhsl(298, 45%, 48%)
HSVhsv(298, 62%, 70%)
CMYKcmyk(1.7%, 62.4%, 0%, 30.2%)
CIE-LABlab(47.42, 58.21, -38.30)
CIE-LCHlch(47.42, 69.68, 326.66°)
OKLaboklab(57.15% 0.1609 -0.1059)
OKLCHoklch(57.15% 0.193 326.6)
XYZxyz(27.7217, 16.3444, 43.8055)
Luminance0.1634 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF43B2 #46B243
analogous
#7743B2 #AF43B2 #B2437E
triadic
#AF43B2 #B2AF43 #43B2AF
tetradic
#AF43B2 #B27743 #46B243 #437EB2
square
#AF43B2 #B27743 #46B243 #437EB2
split-complementary
#AF43B2 #7EB243 #43B277
monochromatic
#582259 #833286 #AF43B2 #C56BC7 #D697D8

Accessibility & contrast

On white

4.92
#AF43B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#AF43B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF43B2
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF43B2#FFFFFF#000000##FFFFFF
##AF43B21.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3368B5
Deuteranopia (green-blind)
#5B75AF
Tritanopia (blue-blind)
#B45274
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af43b2;
/* rgb */ color: rgb(175, 67, 178);
/* oklch */ color: oklch(57.2% 0.193 326.6);
Tailwind
colors: {
  custom: {
    50: '#ca7fc9',
    500: '#af43b2',
    950: '#000000',
  },
}
SCSS
$custom: #af43b2;
$custom-light: #ca7fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#af43b2",
  "rgb": {
    "r": 175,
    "g": 67,
    "b": 178
  },
  "hsl": {
    "h": 298.378,
    "s": 45.306,
    "l": 48.039
  },
  "oklch": {
    "l": 0.57154,
    "c": 0.1926,
    "h": 326.6
  },
  "luminance": 0.16343
}

Semantic roles & 50–950 ramp

primary
#AF43B2
secondary
#8EC48D
accent
#D55356
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF43B2

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

Preview Lab → · Contrast checker → · Palette generator →

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