#AF38D3#AF38D3

#AF38D3 is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 58.0% C 0.234 H 317.0°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#AF38D3
RGBrgb(175, 56, 211)
HSLhsl(286, 64%, 52%)
HSVhsv(286, 73%, 83%)
CMYKcmyk(17.1%, 73.5%, 0%, 17.3%)
CIE-LABlab(47.81, 68.56, -56.82)
CIE-LCHlch(47.81, 89.05, 320.35°)
OKLaboklab(58.05% 0.1715 -0.1599)
OKLCHoklch(58.05% 0.234 317)
XYZxyz(30.8495, 16.6468, 63.2035)
Luminance0.1664 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF38D3 #5CD338
analogous
#6238D3 #AF38D3 #D338A9
triadic
#AF38D3 #D3AF38 #38D3AF
tetradic
#AF38D3 #D36238 #5CD338 #38A9D3
square
#AF38D3 #D36238 #5CD338 #38A9D3
split-complementary
#AF38D3 #A9D338 #38D362
monochromatic
#611A76 #8A25A9 #AF38D3 #C36ADE #D79CE9

Accessibility & contrast

On white

4.85
#AF38D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#AF38D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF38D3
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF38D3#FFFFFF#000000##FFFFFF
##AF38D31.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD7
Deuteranopia (green-blind)
#3A75D0
Tritanopia (blue-blind)
#AD5983
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #af38d3;
/* rgb */ color: rgb(175, 56, 211);
/* oklch */ color: oklch(58.0% 0.234 317.0);
Tailwind
colors: {
  custom: {
    50: '#cb7ae1',
    500: '#af38d3',
    950: '#000000',
  },
}
SCSS
$custom: #af38d3;
$custom-light: #cb7ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#af38d3",
  "rgb": {
    "r": 175,
    "g": 56,
    "b": 211
  },
  "hsl": {
    "h": 286.065,
    "s": 63.786,
    "l": 52.353
  },
  "oklch": {
    "l": 0.58048,
    "c": 0.23448,
    "h": 317
  },
  "luminance": 0.16645
}

Semantic roles & 50–950 ramp

primary
#AF38D3
secondary
#A1D592
accent
#E74168
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #AF38D3

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

Preview Lab → · Contrast checker → · Palette generator →

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