#AF38BC#AF38BC

#AF38BC is a mid, highly saturated purple. Relative luminance 0.156; OKLCH L 56.6% C 0.215 H 323.6°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#AF38BC
RGBrgb(175, 56, 188)
HSLhsl(294, 54%, 48%)
HSVhsv(294, 70%, 74%)
CMYKcmyk(6.9%, 70.2%, 0%, 26.3%)
CIE-LABlab(46.41, 64.35, -45.75)
CIE-LCHlch(46.41, 78.95, 324.59°)
OKLaboklab(56.6% 0.1732 -0.1275)
OKLCHoklch(56.6% 0.215 323.6)
XYZxyz(28.1697, 15.5748, 49.0897)
Luminance0.1557 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF38BC #45BC38
analogous
#6D38BC #AF38BC #BC3887
triadic
#AF38BC #BCAF38 #38BCAF
tetradic
#AF38BC #BC6D38 #45BC38 #3887BC
square
#AF38BC #BC6D38 #45BC38 #3887BC
split-complementary
#AF38BC #87BC38 #38BC6D
monochromatic
#571C5E #832A8D #AF38BC #C561D0 #D690DE

Accessibility & contrast

On white

5.10
#AF38BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#AF38BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF38BC
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF38BC#FFFFFF#000000##FFFFFF
##AF38BC1.005.104.115.10
#FFFFFF5.101.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D65C0
Deuteranopia (green-blind)
#4E73B9
Tritanopia (blue-blind)
#B24F76
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #af38bc;
/* rgb */ color: rgb(175, 56, 188);
/* oklch */ color: oklch(56.6% 0.215 323.6);
Tailwind
colors: {
  custom: {
    50: '#cb79d1',
    500: '#af38bc',
    950: '#000000',
  },
}
SCSS
$custom: #af38bc;
$custom-light: #cb79d1;
$custom-dark: #000000;
JSON
{
  "hex": "#af38bc",
  "rgb": {
    "r": 175,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 294.091,
    "s": 54.098,
    "l": 47.843
  },
  "oklch": {
    "l": 0.56602,
    "c": 0.21503,
    "h": 323.6
  },
  "luminance": 0.15573
}

Semantic roles & 50–950 ramp

primary
#AF38BC
secondary
#8DC987
accent
#DD4A59
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140A14
muted
#827C82

Preview Lab

Preview with #AF38BC

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

Preview Lab → · Contrast checker → · Palette generator →

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