#AF38BA#AF38BA

#AF38BA is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.5% C 0.213 H 324.3°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#AF38BA
RGBrgb(175, 56, 186)
HSLhsl(295, 54%, 47%)
HSVhsv(295, 70%, 73%)
CMYKcmyk(5.9%, 69.9%, 0%, 27.1%)
CIE-LABlab(46.30, 63.99, -44.77)
CIE-LCHlch(46.30, 78.10, 325.03°)
OKLaboklab(56.48% 0.1732 -0.1246)
OKLCHoklch(56.48% 0.213 324.3)
XYZxyz(27.9556, 15.4892, 47.9621)
Luminance0.1549 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF38BA #43BA38
analogous
#6E38BA #AF38BA #BA3884
triadic
#AF38BA #BAAF38 #38BAAF
tetradic
#AF38BA #BA6E38 #43BA38 #3884BA
square
#AF38BA #BA6E38 #43BA38 #3884BA
split-complementary
#AF38BA #84BA38 #38BA6E
monochromatic
#561C5C #832A8B #AF38BA #C660CF #D78FDD

Accessibility & contrast

On white

5.13
#AF38BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#AF38BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF38BA
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF38BA#FFFFFF#000000##FFFFFF
##AF38BA1.005.134.105.13
#FFFFFF5.131.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1365BE
Deuteranopia (green-blind)
#5073B7
Tritanopia (blue-blind)
#B24E75
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #af38ba;
/* rgb */ color: rgb(175, 56, 186);
/* oklch */ color: oklch(56.5% 0.213 324.3);
Tailwind
colors: {
  custom: {
    50: '#ca79cf',
    500: '#af38ba',
    950: '#000000',
  },
}
SCSS
$custom: #af38ba;
$custom-light: #ca79cf;
$custom-dark: #000000;
JSON
{
  "hex": "#af38ba",
  "rgb": {
    "r": 175,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 294.923,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.56483,
    "c": 0.21337,
    "h": 324.3
  },
  "luminance": 0.15487
}

Semantic roles & 50–950 ramp

primary
#AF38BA
secondary
#8BC886
accent
#DD4B57
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140A14
muted
#827C82

Preview Lab

Preview with #AF38BA

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

Preview Lab → · Contrast checker → · Palette generator →

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