#AF38B7#AF38B7

#AF38B7 is a mid, highly saturated purple. Relative luminance 0.154; OKLCH L 56.3% C 0.211 H 325.2°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#AF38B7
RGBrgb(175, 56, 183)
HSLhsl(296, 53%, 47%)
HSVhsv(296, 69%, 72%)
CMYKcmyk(4.4%, 69.4%, 0%, 28.2%)
CIE-LABlab(46.13, 63.47, -43.28)
CIE-LCHlch(46.13, 76.82, 325.71°)
OKLaboklab(56.31% 0.1732 -0.1203)
OKLCHoklch(56.31% 0.211 325.2)
XYZxyz(27.6400, 15.3630, 46.3001)
Luminance0.1536 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF38B7 #40B738
analogous
#6F38B7 #AF38B7 #B73880
triadic
#AF38B7 #B7AF38 #38B7AF
tetradic
#AF38B7 #B76F38 #40B738 #3880B7
square
#AF38B7 #B76F38 #40B738 #3880B7
split-complementary
#AF38B7 #80B738 #38B76F
monochromatic
#551B59 #822A88 #AF38B7 #C75ECE #D78DDC

Accessibility & contrast

On white

5.16
#AF38B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#AF38B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF38B7
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF38B7#FFFFFF#000000##FFFFFF
##AF38B71.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1964BB
Deuteranopia (green-blind)
#5272B4
Tritanopia (blue-blind)
#B34C74
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #af38b7;
/* rgb */ color: rgb(175, 56, 183);
/* oklch */ color: oklch(56.3% 0.211 325.2);
Tailwind
colors: {
  custom: {
    50: '#ca79cd',
    500: '#af38b7',
    950: '#000000',
  },
}
SCSS
$custom: #af38b7;
$custom-light: #ca79cd;
$custom-dark: #000000;
JSON
{
  "hex": "#af38b7",
  "rgb": {
    "r": 175,
    "g": 56,
    "b": 183
  },
  "hsl": {
    "h": 296.22,
    "s": 53.138,
    "l": 46.863
  },
  "oklch": {
    "l": 0.56306,
    "c": 0.21091,
    "h": 325.2
  },
  "luminance": 0.15361
}

Semantic roles & 50–950 ramp

primary
#AF38B7
secondary
#88C784
accent
#DD4B54
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF38B7

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

Preview Lab → · Contrast checker → · Palette generator →

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