#AF38DA#AF38DA

#AF38DA is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.5% C 0.240 H 315.2°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#AF38DA
RGBrgb(175, 56, 218)
HSLhsl(284, 69%, 54%)
HSVhsv(284, 74%, 85%)
CMYKcmyk(19.7%, 74.3%, 0%, 14.5%)
CIE-LABlab(48.27, 69.90, -60.09)
CIE-LCHlch(48.27, 92.18, 319.32°)
OKLaboklab(58.51% 0.1707 -0.1695)
OKLCHoklch(58.51% 0.241 315.2)
XYZxyz(31.7462, 17.0054, 67.9262)
Luminance0.1700 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF38DA #63DA38
analogous
#5E38DA #AF38DA #DA38B4
triadic
#AF38DA #DAAF38 #38DAAF
tetradic
#AF38DA #DA5E38 #63DA38 #38B4DA
square
#AF38DA #DA5E38 #63DA38 #38B4DA
split-complementary
#AF38DA #B4DA38 #38DA5E
monochromatic
#641880 #8D21B3 #AF38DA #C46CE4 #D89FED

Accessibility & contrast

On white

4.77
#AF38DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#AF38DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF38DA
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF38DA#FFFFFF#000000##FFFFFF
##AF38DA1.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDE
Deuteranopia (green-blind)
#3276D6
Tritanopia (blue-blind)
#AB5C87
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af38da;
/* rgb */ color: rgb(175, 56, 218);
/* oklch */ color: oklch(58.5% 0.240 315.2);
Tailwind
colors: {
  custom: {
    50: '#cb7be6',
    500: '#af38da',
    950: '#000000',
  },
}
SCSS
$custom: #af38da;
$custom-light: #cb7be6;
$custom-dark: #000000;
JSON
{
  "hex": "#af38da",
  "rgb": {
    "r": 175,
    "g": 56,
    "b": 218
  },
  "hsl": {
    "h": 284.074,
    "s": 68.644,
    "l": 53.725
  },
  "oklch": {
    "l": 0.58515,
    "c": 0.2405,
    "h": 315.2
  },
  "luminance": 0.17004
}

Semantic roles & 50–950 ramp

primary
#AF38DA
secondary
#A7DA94
accent
#EB3C6B
background
#FDF7FE
surface
#FAEEFC
border
#D3C9D5
text
#140A16
muted
#837C84

Preview Lab

Preview with #AF38DA

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

Preview Lab → · Contrast checker → · Palette generator →

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