#AF35A2#AF35A2

#AF35A2 is a mid, vivid purple. Relative luminance 0.143; OKLCH L 54.9% C 0.198 H 332.6°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#AF35A2
RGBrgb(175, 53, 162)
HSLhsl(306, 54%, 45%)
HSVhsv(306, 70%, 69%)
CMYKcmyk(0%, 69.7%, 7.4%, 31.4%)
CIE-LABlab(44.62, 61.08, -33.25)
CIE-LCHlch(44.62, 69.55, 331.44°)
OKLaboklab(54.86% 0.1756 -0.0912)
OKLCHoklch(54.86% 0.198 332.6)
XYZxyz(25.4740, 14.2709, 35.5883)
Luminance0.1427 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF35A2 #35AF42
analogous
#7F35AF #AF35A2 #AF3565
triadic
#AF35A2 #A2AF35 #35A2AF
tetradic
#AF35A2 #AF7F35 #35AF42 #3565AF
square
#AF35A2 #AF7F35 #35AF42 #3565AF
split-complementary
#AF35A2 #65AF35 #35AF7F
monochromatic
#51194B #802777 #AF35A2 #CC56BF #DA85D1

Accessibility & contrast

On white

5.45
#AF35A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#AF35A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF35A2
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF35A2#FFFFFF#000000##FFFFFF
##AF35A21.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5EA5
Deuteranopia (green-blind)
#5B709F
Tritanopia (blue-blind)
#B74167
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af35a2;
/* rgb */ color: rgb(175, 53, 162);
/* oklch */ color: oklch(54.9% 0.198 332.6);
Tailwind
colors: {
  custom: {
    50: '#ca77be',
    500: '#af35a2',
    950: '#000000',
  },
}
SCSS
$custom: #af35a2;
$custom-light: #ca77be;
$custom-dark: #000000;
JSON
{
  "hex": "#af35a2",
  "rgb": {
    "r": 175,
    "g": 53,
    "b": 162
  },
  "hsl": {
    "h": 306.393,
    "s": 53.509,
    "l": 44.706
  },
  "oklch": {
    "l": 0.54859,
    "c": 0.19792,
    "h": 332.6
  },
  "luminance": 0.14269
}

Semantic roles & 50–950 ramp

primary
#AF35A2
secondary
#7CC484
accent
#DD5A4B
background
#FCF7FB
surface
#F9EEF7
border
#D2C9D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF35A2

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

Preview Lab → · Contrast checker → · Palette generator →

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