#AF38B3#AF38B3

#AF38B3 is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.1% C 0.208 H 326.5°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#AF38B3
RGBrgb(175, 56, 179)
HSLhsl(298, 52%, 46%)
HSVhsv(298, 69%, 70%)
CMYKcmyk(2.2%, 68.7%, 0%, 29.8%)
CIE-LABlab(45.91, 62.78, -41.29)
CIE-LCHlch(45.91, 75.14, 326.67°)
OKLaboklab(56.08% 0.1732 -0.1145)
OKLCHoklch(56.08% 0.208 326.5)
XYZxyz(27.2296, 15.1988, 44.1385)
Luminance0.1520 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF38B3 #3CB338
analogous
#7138B3 #AF38B3 #B33879
triadic
#AF38B3 #B3AF38 #38B3AF
tetradic
#AF38B3 #B37138 #3CB338 #3879B3
square
#AF38B3 #B37138 #3CB338 #3879B3
split-complementary
#AF38B3 #79B338 #38B371
monochromatic
#541B56 #812984 #AF38B3 #C85CCC #D88BDB

Accessibility & contrast

On white

5.20
#AF38B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#AF38B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF38B3
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF38B3#FFFFFF#000000##FFFFFF
##AF38B31.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2063B7
Deuteranopia (green-blind)
#5472B0
Tritanopia (blue-blind)
#B44B71
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #af38b3;
/* rgb */ color: rgb(175, 56, 179);
/* oklch */ color: oklch(56.1% 0.208 326.5);
Tailwind
colors: {
  custom: {
    50: '#ca79ca',
    500: '#af38b3',
    950: '#000000',
  },
}
SCSS
$custom: #af38b3;
$custom-light: #ca79ca;
$custom-dark: #000000;
JSON
{
  "hex": "#af38b3",
  "rgb": {
    "r": 175,
    "g": 56,
    "b": 179
  },
  "hsl": {
    "h": 298.049,
    "s": 52.34,
    "l": 46.078
  },
  "oklch": {
    "l": 0.56075,
    "c": 0.20765,
    "h": 326.5
  },
  "luminance": 0.15197
}

Semantic roles & 50–950 ramp

primary
#AF38B3
secondary
#84C582
accent
#DC4C51
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF38B3

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

Preview Lab → · Contrast checker → · Palette generator →

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