#AF38D5#AF38D5

#AF38D5 is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 58.2% C 0.236 H 316.5°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#AF38D5
RGBrgb(175, 56, 213)
HSLhsl(285, 65%, 53%)
HSVhsv(285, 74%, 84%)
CMYKcmyk(17.8%, 73.7%, 0%, 16.5%)
CIE-LABlab(47.94, 68.94, -57.75)
CIE-LCHlch(47.94, 89.94, 320.05°)
OKLaboklab(58.18% 0.1713 -0.1626)
OKLCHoklch(58.18% 0.236 316.5)
XYZxyz(31.1018, 16.7477, 64.5322)
Luminance0.1675 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF38D5 #5ED538
analogous
#6138D5 #AF38D5 #D538AC
triadic
#AF38D5 #D5AF38 #38D5AF
tetradic
#AF38D5 #D56138 #5ED538 #38ACD5
square
#AF38D5 #D56138 #5ED538 #38ACD5
split-complementary
#AF38D5 #ACD538 #38D561
monochromatic
#621A79 #8B24AC #AF38D5 #C36BE0 #D89DEA

Accessibility & contrast

On white

4.83
#AF38D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#AF38D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF38D5
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF38D5#FFFFFF#000000##FFFFFF
##AF38D51.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD9
Deuteranopia (green-blind)
#3875D2
Tritanopia (blue-blind)
#AD5A84
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #af38d5;
/* rgb */ color: rgb(175, 56, 213);
/* oklch */ color: oklch(58.2% 0.236 316.5);
Tailwind
colors: {
  custom: {
    50: '#cb7ae3',
    500: '#af38d5',
    950: '#000000',
  },
}
SCSS
$custom: #af38d5;
$custom-light: #cb7ae3;
$custom-dark: #000000;
JSON
{
  "hex": "#af38d5",
  "rgb": {
    "r": 175,
    "g": 56,
    "b": 213
  },
  "hsl": {
    "h": 285.478,
    "s": 65.145,
    "l": 52.745
  },
  "oklch": {
    "l": 0.5818,
    "c": 0.2362,
    "h": 316.5
  },
  "luminance": 0.16746
}

Semantic roles & 50–950 ramp

primary
#AF38D5
secondary
#A3D692
accent
#E84068
background
#FDF7FE
surface
#FAEEFC
border
#D3C9D5
text
#140A15
muted
#837C84

Preview Lab

Preview with #AF38D5

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

Preview Lab → · Contrast checker → · Palette generator →

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