#AF38C7#AF38C7

#AF38C7 is a mid, highly saturated purple. Relative luminance 0.161; OKLCH L 57.3% C 0.224 H 320.3°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#AF38C7
RGBrgb(175, 56, 199)
HSLhsl(290, 56%, 50%)
HSVhsv(290, 72%, 78%)
CMYKcmyk(12.1%, 71.9%, 0%, 22%)
CIE-LABlab(47.06, 66.33, -51.10)
CIE-LCHlch(47.06, 83.73, 322.39°)
OKLaboklab(57.28% 0.1726 -0.1431)
OKLCHoklch(57.28% 0.224 320.3)
XYZxyz(29.4009, 16.0673, 55.5744)
Luminance0.1607 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF38C7 #50C738
analogous
#6838C7 #AF38C7 #C73897
triadic
#AF38C7 #C7AF38 #38C7AF
tetradic
#AF38C7 #C76838 #50C738 #3897C7
square
#AF38C7 #C76838 #50C738 #3897C7
split-complementary
#AF38C7 #97C738 #38C768
monochromatic
#5B1D67 #852B97 #AF38C7 #C268D4 #D598E2

Accessibility & contrast

On white

4.98
#AF38C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#AF38C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF38C7
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF38C7#FFFFFF#000000##FFFFFF
##AF38C71.004.984.214.98
#FFFFFF4.981.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CB
Deuteranopia (green-blind)
#4674C4
Tritanopia (blue-blind)
#B0537C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af38c7;
/* rgb */ color: rgb(175, 56, 199);
/* oklch */ color: oklch(57.3% 0.224 320.3);
Tailwind
colors: {
  custom: {
    50: '#cb7ad9',
    500: '#af38c7',
    950: '#000000',
  },
}
SCSS
$custom: #af38c7;
$custom-light: #cb7ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#af38c7",
  "rgb": {
    "r": 175,
    "g": 56,
    "b": 199
  },
  "hsl": {
    "h": 289.93,
    "s": 56.078,
    "l": 50
  },
  "oklch": {
    "l": 0.57276,
    "c": 0.22425,
    "h": 320.3
  },
  "luminance": 0.16066
}

Semantic roles & 50–950 ramp

primary
#AF38C7
secondary
#98CD8D
accent
#DF4862
background
#FCF7FD
surface
#F9EEFA
border
#D2C9D3
text
#140A15
muted
#827C83

Preview Lab

Preview with #AF38C7

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

Preview Lab → · Contrast checker → · Palette generator →

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