#AF38D7#AF38D7

#AF38D7 is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 58.3% C 0.238 H 316.0°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#AF38D7
RGBrgb(175, 56, 215)
HSLhsl(285, 67%, 53%)
HSVhsv(285, 74%, 84%)
CMYKcmyk(18.6%, 74%, 0%, 15.7%)
CIE-LABlab(48.07, 69.33, -58.69)
CIE-LCHlch(48.07, 90.83, 319.75°)
OKLaboklab(58.31% 0.1711 -0.1654)
OKLCHoklch(58.31% 0.238 316)
XYZxyz(31.3572, 16.8498, 65.8774)
Luminance0.1685 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF38D7 #60D738
analogous
#6038D7 #AF38D7 #D738AF
triadic
#AF38D7 #D7AF38 #38D7AF
tetradic
#AF38D7 #D76038 #60D738 #38AFD7
square
#AF38D7 #D76038 #60D738 #38AFD7
split-complementary
#AF38D7 #AFD738 #38D760
monochromatic
#63197C #8C23AF #AF38D7 #C36BE1 #D89EEB

Accessibility & contrast

On white

4.81
#AF38D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#AF38D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF38D7
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF38D7#FFFFFF#000000##FFFFFF
##AF38D71.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDB
Deuteranopia (green-blind)
#3675D4
Tritanopia (blue-blind)
#AC5B85
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #af38d7;
/* rgb */ color: rgb(175, 56, 215);
/* oklch */ color: oklch(58.3% 0.238 316.0);
Tailwind
colors: {
  custom: {
    50: '#cb7ae4',
    500: '#af38d7',
    950: '#000000',
  },
}
SCSS
$custom: #af38d7;
$custom-light: #cb7ae4;
$custom-dark: #000000;
JSON
{
  "hex": "#af38d7",
  "rgb": {
    "r": 175,
    "g": 56,
    "b": 215
  },
  "hsl": {
    "h": 284.906,
    "s": 66.527,
    "l": 53.137
  },
  "oklch": {
    "l": 0.58313,
    "c": 0.23792,
    "h": 316
  },
  "luminance": 0.16849
}

Semantic roles & 50–950 ramp

primary
#AF38D7
secondary
#A4D893
accent
#E93E69
background
#FDF7FE
surface
#FAEEFC
border
#D3C9D5
text
#140A16
muted
#837C84

Preview Lab

Preview with #AF38D7

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

Preview Lab → · Contrast checker → · Palette generator →

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