#AF38DF#AF38DF

#AF38DF is a mid, highly saturated purple. Relative luminance 0.173; OKLCH L 58.9% C 0.245 H 314.0°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#AF38DF
RGBrgb(175, 56, 223)
HSLhsl(283, 72%, 55%)
HSVhsv(283, 75%, 87%)
CMYKcmyk(21.5%, 74.9%, 0%, 12.5%)
CIE-LABlab(48.60, 70.87, -62.40)
CIE-LCHlch(48.60, 94.42, 318.64°)
OKLaboklab(58.86% 0.1699 -0.1762)
OKLCHoklch(58.86% 0.245 314)
XYZxyz(32.4104, 17.2711, 71.4241)
Luminance0.1727 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF38DF #68DF38
analogous
#5B38DF #AF38DF #DF38BC
triadic
#AF38DF #DFAF38 #38DFAF
tetradic
#AF38DF #DF5B38 #68DF38 #38BCDF
square
#AF38DF #DF5B38 #68DF38 #38BCDF
split-complementary
#AF38DF #BCDF38 #38DF5B
monochromatic
#661687 #8E1EBC #AF38DF #C46DE7 #D9A1F0

Accessibility & contrast

On white

4.71
#AF38DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#AF38DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF38DF
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF38DF#FFFFFF#000000##FFFFFF
##AF38DF1.004.714.454.71
#FFFFFF4.711.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE4
Deuteranopia (green-blind)
#2A76DB
Tritanopia (blue-blind)
#AA5E8A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af38df;
/* rgb */ color: rgb(175, 56, 223);
/* oklch */ color: oklch(58.9% 0.245 314.0);
Tailwind
colors: {
  custom: {
    50: '#cc7bea',
    500: '#af38df',
    950: '#000000',
  },
}
SCSS
$custom: #af38df;
$custom-light: #cc7bea;
$custom-dark: #000000;
JSON
{
  "hex": "#af38df",
  "rgb": {
    "r": 175,
    "g": 56,
    "b": 223
  },
  "hsl": {
    "h": 282.754,
    "s": 72.294,
    "l": 54.706
  },
  "oklch": {
    "l": 0.58856,
    "c": 0.24483,
    "h": 314
  },
  "luminance": 0.1727
}

Semantic roles & 50–950 ramp

primary
#AF38DF
secondary
#AADD96
accent
#EF396D
background
#FDF7FE
surface
#FAEEFD
border
#D3C9D5
text
#140A16
muted
#837C84

Preview Lab

Preview with #AF38DF

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

Preview Lab → · Contrast checker → · Palette generator →

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