#AF38C3#AF38C3

#AF38C3 is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 57.0% C 0.221 H 321.5°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#AF38C3
RGBrgb(175, 56, 195)
HSLhsl(291, 55%, 49%)
HSVhsv(291, 71%, 76%)
CMYKcmyk(10.3%, 71.3%, 0%, 23.5%)
CIE-LABlab(46.82, 65.60, -49.17)
CIE-LCHlch(46.82, 81.98, 323.15°)
OKLaboklab(57.03% 0.1729 -0.1375)
OKLCHoklch(57.03% 0.221 321.5)
XYZxyz(28.9426, 15.8840, 53.1606)
Luminance0.1588 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF38C3 #4CC338
analogous
#6A38C3 #AF38C3 #C33892
triadic
#AF38C3 #C3AF38 #38C3AF
tetradic
#AF38C3 #C36A38 #4CC338 #3892C3
square
#AF38C3 #C36A38 #4CC338 #3892C3
split-complementary
#AF38C3 #92C338 #38C36A
monochromatic
#5A1D64 #842A93 #AF38C3 #C365D3 #D695E1

Accessibility & contrast

On white

5.03
#AF38C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#AF38C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF38C3
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF38C3#FFFFFF#000000##FFFFFF
##AF38C31.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067C7
Deuteranopia (green-blind)
#4973C0
Tritanopia (blue-blind)
#B1527A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #af38c3;
/* rgb */ color: rgb(175, 56, 195);
/* oklch */ color: oklch(57.0% 0.221 321.5);
Tailwind
colors: {
  custom: {
    50: '#cb7ad6',
    500: '#af38c3',
    950: '#000000',
  },
}
SCSS
$custom: #af38c3;
$custom-light: #cb7ad6;
$custom-dark: #000000;
JSON
{
  "hex": "#af38c3",
  "rgb": {
    "r": 175,
    "g": 56,
    "b": 195
  },
  "hsl": {
    "h": 291.367,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.57027,
    "c": 0.22088,
    "h": 321.5
  },
  "luminance": 0.15882
}

Semantic roles & 50–950 ramp

primary
#AF38C3
secondary
#94CC8B
accent
#DF495F
background
#FCF7FD
surface
#F9EEFA
border
#D2C9D3
text
#140A14
muted
#827C83

Preview Lab

Preview with #AF38C3

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

Preview Lab → · Contrast checker → · Palette generator →

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