#AF38B1#AF38B1

#AF38B1 is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.0% C 0.206 H 327.2°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#AF38B1
RGBrgb(175, 56, 177)
HSLhsl(299, 52%, 46%)
HSVhsv(299, 68%, 69%)
CMYKcmyk(1.1%, 68.4%, 0%, 30.6%)
CIE-LABlab(45.80, 62.44, -40.28)
CIE-LCHlch(45.80, 74.30, 327.17°)
OKLaboklab(55.96% 0.1732 -0.1116)
OKLCHoklch(55.96% 0.206 327.2)
XYZxyz(27.0288, 15.1185, 43.0810)
Luminance0.1512 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF38B1 #3AB138
analogous
#7238B1 #AF38B1 #B13876
triadic
#AF38B1 #B1AF38 #38B1AF
tetradic
#AF38B1 #B17238 #3AB138 #3876B1
square
#AF38B1 #B17238 #3AB138 #3876B1
split-complementary
#AF38B1 #76B138 #38B172
monochromatic
#531B54 #812983 #AF38B1 #C95BCB #D98ADA

Accessibility & contrast

On white

5.22
#AF38B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#AF38B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF38B1
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF38B1#FFFFFF#000000##FFFFFF
##AF38B11.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2363B4
Deuteranopia (green-blind)
#5572AE
Tritanopia (blue-blind)
#B44A70
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #af38b1;
/* rgb */ color: rgb(175, 56, 177);
/* oklch */ color: oklch(56.0% 0.206 327.2);
Tailwind
colors: {
  custom: {
    50: '#ca79c9',
    500: '#af38b1',
    950: '#000000',
  },
}
SCSS
$custom: #af38b1;
$custom-light: #ca79c9;
$custom-dark: #000000;
JSON
{
  "hex": "#af38b1",
  "rgb": {
    "r": 175,
    "g": 56,
    "b": 177
  },
  "hsl": {
    "h": 299.008,
    "s": 51.931,
    "l": 45.686
  },
  "oklch": {
    "l": 0.55961,
    "c": 0.20602,
    "h": 327.2
  },
  "luminance": 0.15117
}

Semantic roles & 50–950 ramp

primary
#AF38B1
secondary
#82C481
accent
#DB4C4F
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF38B1

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

Preview Lab → · Contrast checker → · Palette generator →

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