#AF38C1#AF38C1

#AF38C1 is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 56.9% C 0.219 H 322.1°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#AF38C1
RGBrgb(175, 56, 193)
HSLhsl(292, 55%, 49%)
HSVhsv(292, 71%, 76%)
CMYKcmyk(9.3%, 71%, 0%, 24.3%)
CIE-LABlab(46.70, 65.24, -48.20)
CIE-LCHlch(46.70, 81.11, 323.54°)
OKLaboklab(56.9% 0.173 -0.1346)
OKLCHoklch(56.9% 0.219 322.1)
XYZxyz(28.7180, 15.7942, 51.9777)
Luminance0.1579 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF38C1 #4AC138
analogous
#6B38C1 #AF38C1 #C1388F
triadic
#AF38C1 #C1AF38 #38C1AF
tetradic
#AF38C1 #C16B38 #4AC138 #388FC1
square
#AF38C1 #C16B38 #4AC138 #388FC1
split-complementary
#AF38C1 #8FC138 #38C16B
monochromatic
#591C62 #842A92 #AF38C1 #C464D2 #D694E0

Accessibility & contrast

On white

5.05
#AF38C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#AF38C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF38C1
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF38C1#FFFFFF#000000##FFFFFF
##AF38C11.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C5
Deuteranopia (green-blind)
#4B73BE
Tritanopia (blue-blind)
#B15179
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #af38c1;
/* rgb */ color: rgb(175, 56, 193);
/* oklch */ color: oklch(56.9% 0.219 322.1);
Tailwind
colors: {
  custom: {
    50: '#cb7ad4',
    500: '#af38c1',
    950: '#000000',
  },
}
SCSS
$custom: #af38c1;
$custom-light: #cb7ad4;
$custom-dark: #000000;
JSON
{
  "hex": "#af38c1",
  "rgb": {
    "r": 175,
    "g": 56,
    "b": 193
  },
  "hsl": {
    "h": 292.117,
    "s": 55.02,
    "l": 48.824
  },
  "oklch": {
    "l": 0.56904,
    "c": 0.2192,
    "h": 322.1
  },
  "luminance": 0.15793
}

Semantic roles & 50–950 ramp

primary
#AF38C1
secondary
#92CB8A
accent
#DE495D
background
#FCF7FD
surface
#F9EEFA
border
#D2C9D3
text
#140A14
muted
#827C83

Preview Lab

Preview with #AF38C1

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

Preview Lab → · Contrast checker → · Palette generator →

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