#AF38AA#AF38AA

#AF38AA is a mid, highly saturated purple. Relative luminance 0.148; OKLCH L 55.6% C 0.200 H 329.6°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#AF38AA
RGBrgb(175, 56, 170)
HSLhsl(303, 52%, 45%)
HSVhsv(303, 68%, 69%)
CMYKcmyk(0%, 68%, 2.9%, 31.4%)
CIE-LABlab(45.42, 61.27, -36.74)
CIE-LCHlch(45.42, 71.44, 329.05°)
OKLaboklab(55.57% 0.1729 -0.1013)
OKLCHoklch(55.57% 0.2 329.6)
XYZxyz(26.3489, 14.8465, 39.5003)
Luminance0.1484 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF38AA #38AF3D
analogous
#7838AF #AF38AA #AF386E
triadic
#AF38AA #AAAF38 #38AAAF
tetradic
#AF38AA #AF7838 #38AF3D #386EAF
square
#AF38AA #AF7838 #38AF3D #386EAF
split-complementary
#AF38AA #6EAF38 #38AF78
monochromatic
#521A50 #81297D #AF38AA #CA5AC5 #D988D6

Accessibility & contrast

On white

5.29
#AF38AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#AF38AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF38AA
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF38AA#FFFFFF#000000##FFFFFF
##AF38AA1.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B61AD
Deuteranopia (green-blind)
#5971A7
Tritanopia (blue-blind)
#B5476D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #af38aa;
/* rgb */ color: rgb(175, 56, 170);
/* oklch */ color: oklch(55.6% 0.200 329.6);
Tailwind
colors: {
  custom: {
    50: '#ca79c4',
    500: '#af38aa',
    950: '#000000',
  },
}
SCSS
$custom: #af38aa;
$custom-light: #ca79c4;
$custom-dark: #000000;
JSON
{
  "hex": "#af38aa",
  "rgb": {
    "r": 175,
    "g": 56,
    "b": 170
  },
  "hsl": {
    "h": 302.521,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.55572,
    "c": 0.20043,
    "h": 329.6
  },
  "luminance": 0.14845
}

Semantic roles & 50–950 ramp

primary
#AF38AA
secondary
#80C382
accent
#DB534D
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A12
muted
#827C81

Preview Lab

Preview with #AF38AA

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

Preview Lab → · Contrast checker → · Palette generator →

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