#AF46B2#AF46B2

#AF46B2 is a mid, vivid purple. Relative luminance 0.167; OKLCH L 57.5% C 0.188 H 326.6°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#AF46B2
RGBrgb(175, 70, 178)
HSLhsl(298, 44%, 49%)
HSVhsv(298, 61%, 70%)
CMYKcmyk(1.7%, 60.7%, 0%, 30.2%)
CIE-LABlab(47.89, 56.91, -37.55)
CIE-LCHlch(47.89, 68.19, 326.58°)
OKLaboklab(57.5% 0.1572 -0.1038)
OKLCHoklch(57.5% 0.188 326.6)
XYZxyz(27.9047, 16.7103, 43.8665)
Luminance0.1671 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF46B2 #49B246
analogous
#7946B2 #AF46B2 #B2467F
triadic
#AF46B2 #B2AF46 #46B2AF
tetradic
#AF46B2 #B27946 #49B246 #467FB2
square
#AF46B2 #B27946 #49B246 #467FB2
split-complementary
#AF46B2 #7FB246 #46B279
monochromatic
#59235A #843586 #AF46B2 #C46FC6 #D69BD8

Accessibility & contrast

On white

4.84
#AF46B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#AF46B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF46B2
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF46B2#FFFFFF#000000##FFFFFF
##AF46B21.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3769B5
Deuteranopia (green-blind)
#5D76AF
Tritanopia (blue-blind)
#B45476
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #af46b2;
/* rgb */ color: rgb(175, 70, 178);
/* oklch */ color: oklch(57.5% 0.188 326.6);
Tailwind
colors: {
  custom: {
    50: '#ca80c9',
    500: '#af46b2',
    950: '#000000',
  },
}
SCSS
$custom: #af46b2;
$custom-light: #ca80c9;
$custom-dark: #000000;
JSON
{
  "hex": "#af46b2",
  "rgb": {
    "r": 175,
    "g": 70,
    "b": 178
  },
  "hsl": {
    "h": 298.333,
    "s": 43.548,
    "l": 48.627
  },
  "oklch": {
    "l": 0.57495,
    "c": 0.1884,
    "h": 326.6
  },
  "luminance": 0.16709
}

Semantic roles & 50–950 ramp

primary
#AF46B2
secondary
#91C490
accent
#D35558
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140B13
muted
#827C82

Preview Lab

Preview with #AF46B2

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

Preview Lab → · Contrast checker → · Palette generator →

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