#AF38CC#AF38CC

#AF38CC is a mid, highly saturated purple. Relative luminance 0.163; OKLCH L 57.6% C 0.229 H 318.9°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#AF38CC
RGBrgb(175, 56, 204)
HSLhsl(288, 59%, 51%)
HSVhsv(288, 73%, 80%)
CMYKcmyk(14.2%, 72.5%, 0%, 20%)
CIE-LABlab(47.37, 67.25, -53.50)
CIE-LCHlch(47.37, 85.94, 321.50°)
OKLaboklab(57.59% 0.1722 -0.1501)
OKLCHoklch(57.59% 0.229 318.9)
XYZxyz(29.9910, 16.3034, 58.6821)
Luminance0.1630 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF38CC #55CC38
analogous
#6538CC #AF38CC #CC389F
triadic
#AF38CC #CCAF38 #38CCAF
tetradic
#AF38CC #CC6538 #55CC38 #389FCC
square
#AF38CC #CC6538 #55CC38 #389FCC
split-complementary
#AF38CC #9FCC38 #38CC65
monochromatic
#5E1C6E #87299E #AF38CC #C369D8 #D699E5

Accessibility & contrast

On white

4.93
#AF38CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#AF38CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF38CC
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF38CC#FFFFFF#000000##FFFFFF
##AF38CC1.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D0
Deuteranopia (green-blind)
#4274C9
Tritanopia (blue-blind)
#AF567F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af38cc;
/* rgb */ color: rgb(175, 56, 204);
/* oklch */ color: oklch(57.6% 0.229 318.9);
Tailwind
colors: {
  custom: {
    50: '#cb7adc',
    500: '#af38cc',
    950: '#000000',
  },
}
SCSS
$custom: #af38cc;
$custom-light: #cb7adc;
$custom-dark: #000000;
JSON
{
  "hex": "#af38cc",
  "rgb": {
    "r": 175,
    "g": 56,
    "b": 204
  },
  "hsl": {
    "h": 288.243,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.57593,
    "c": 0.2285,
    "h": 318.9
  },
  "luminance": 0.16302
}

Semantic roles & 50–950 ramp

primary
#AF38CC
secondary
#9CD18F
accent
#E24564
background
#FCF7FD
surface
#F9EEFB
border
#D2C9D4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AF38CC

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

Preview Lab → · Contrast checker → · Palette generator →

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