#AF38C0#AF38C0

#AF38C0 is a mid, highly saturated purple. Relative luminance 0.157; OKLCH L 56.8% C 0.218 H 322.4°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#AF38C0
RGBrgb(175, 56, 192)
HSLhsl(293, 55%, 49%)
HSVhsv(293, 71%, 75%)
CMYKcmyk(8.9%, 70.8%, 0%, 24.7%)
CIE-LABlab(46.64, 65.06, -47.71)
CIE-LCHlch(46.64, 80.68, 323.75°)
OKLaboklab(56.84% 0.173 -0.1332)
OKLCHoklch(56.84% 0.218 322.4)
XYZxyz(28.6068, 15.7497, 51.3922)
Luminance0.1575 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF38C0 #49C038
analogous
#6B38C0 #AF38C0 #C0388D
triadic
#AF38C0 #C0AF38 #38C0AF
tetradic
#AF38C0 #C06B38 #49C038 #388DC0
square
#AF38C0 #C06B38 #49C038 #388DC0
split-complementary
#AF38C0 #8DC038 #38C06B
monochromatic
#591C61 #842A91 #AF38C0 #C464D2 #D693DF

Accessibility & contrast

On white

5.06
#AF38C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#AF38C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF38C0
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF38C0#FFFFFF#000000##FFFFFF
##AF38C01.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C4
Deuteranopia (green-blind)
#4C73BD
Tritanopia (blue-blind)
#B15079
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #af38c0;
/* rgb */ color: rgb(175, 56, 192);
/* oklch */ color: oklch(56.8% 0.218 322.4);
Tailwind
colors: {
  custom: {
    50: '#cb7ad4',
    500: '#af38c0',
    950: '#000000',
  },
}
SCSS
$custom: #af38c0;
$custom-light: #cb7ad4;
$custom-dark: #000000;
JSON
{
  "hex": "#af38c0",
  "rgb": {
    "r": 175,
    "g": 56,
    "b": 192
  },
  "hsl": {
    "h": 292.5,
    "s": 54.839,
    "l": 48.627
  },
  "oklch": {
    "l": 0.56843,
    "c": 0.21836,
    "h": 322.4
  },
  "luminance": 0.15748
}

Semantic roles & 50–950 ramp

primary
#AF38C0
secondary
#91CB89
accent
#DE4A5C
background
#FCF7FD
surface
#F9EEFA
border
#D2C9D3
text
#140A14
muted
#827C83

Preview Lab

Preview with #AF38C0

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

Preview Lab → · Contrast checker → · Palette generator →

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