#AF38AF#AF38AF

#AF38AF is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 55.8% C 0.204 H 327.9°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#AF38AF
RGBrgb(175, 56, 175)
HSLhsl(300, 52%, 45%)
HSVhsv(300, 68%, 69%)
CMYKcmyk(0%, 68%, 0%, 31.4%)
CIE-LABlab(45.69, 62.10, -39.27)
CIE-LCHlch(45.69, 73.48, 327.69°)
OKLaboklab(55.85% 0.1731 -0.1087)
OKLCHoklch(55.85% 0.204 327.9)
XYZxyz(26.8309, 15.0393, 42.0388)
Luminance0.1504 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF38AF #38AF38
analogous
#7338AF #AF38AF #AF3873
triadic
#AF38AF #AFAF38 #38AFAF
tetradic
#AF38AF #AF7338 #38AF38 #3873AF
square
#AF38AF #AF7338 #38AF38 #3873AF
split-complementary
#AF38AF #73AF38 #38AF73
monochromatic
#521A52 #812981 #AF38AF #CA5ACA #D988D9

Accessibility & contrast

On white

5.24
#AF38AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#AF38AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF38AF
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF38AF#FFFFFF#000000##FFFFFF
##AF38AF1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2662B2
Deuteranopia (green-blind)
#5672AC
Tritanopia (blue-blind)
#B4496F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #af38af;
/* rgb */ color: rgb(175, 56, 175);
/* oklch */ color: oklch(55.8% 0.204 327.9);
Tailwind
colors: {
  custom: {
    50: '#ca79c7',
    500: '#af38af',
    950: '#000000',
  },
}
SCSS
$custom: #af38af;
$custom-light: #ca79c7;
$custom-dark: #000000;
JSON
{
  "hex": "#af38af",
  "rgb": {
    "r": 175,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 300,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.55849,
    "c": 0.20441,
    "h": 327.9
  },
  "luminance": 0.15037
}

Semantic roles & 50–950 ramp

primary
#AF38AF
secondary
#80C380
accent
#DB4D4D
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF38AF

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

Preview Lab → · Contrast checker → · Palette generator →

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