#AF47DF#AF47DF

#AF47DF is a mid, highly saturated purple. Relative luminance 0.189; OKLCH L 60.3% C 0.228 H 313.0°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#AF47DF
RGBrgb(175, 71, 223)
HSLhsl(281, 70%, 58%)
HSVhsv(281, 68%, 87%)
CMYKcmyk(21.5%, 68.2%, 0%, 12.5%)
CIE-LABlab(50.63, 65.12, -59.13)
CIE-LCHlch(50.63, 87.96, 317.76°)
OKLaboklab(60.3% 0.1556 -0.1667)
OKLCHoklch(60.3% 0.228 313)
XYZxyz(33.2494, 18.9491, 71.7038)
Luminance0.1895 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF47DF #77DF47
analogous
#6347DF #AF47DF #DF47C3
triadic
#AF47DF #DFAF47 #47DFAF
tetradic
#AF47DF #DF6347 #77DF47 #47C3DF
square
#AF47DF #DF6347 #77DF47 #47C3DF
split-complementary
#AF47DF #C3DF47 #47DF63
monochromatic
#6C1992 #9322C6 #AF47DF #C67BE8 #DCAFF1

Accessibility & contrast

On white

4.38
#AF47DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#AF47DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF47DF
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF47DF#FFFFFF#000000##000000
##AF47DF1.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073E3
Deuteranopia (green-blind)
#3B7BDC
Tritanopia (blue-blind)
#AA668E
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #af47df;
/* rgb */ color: rgb(175, 71, 223);
/* oklch */ color: oklch(60.3% 0.228 313.0);
Tailwind
colors: {
  custom: {
    50: '#cb82ea',
    500: '#af47df',
    950: '#000000',
  },
}
SCSS
$custom: #af47df;
$custom-light: #cb82ea;
$custom-dark: #000000;
JSON
{
  "hex": "#af47df",
  "rgb": {
    "r": 175,
    "g": 71,
    "b": 223
  },
  "hsl": {
    "h": 281.053,
    "s": 70.37,
    "l": 57.647
  },
  "oklch": {
    "l": 0.60297,
    "c": 0.22809,
    "h": 313
  },
  "luminance": 0.18948
}

Semantic roles & 50–950 ramp

primary
#AF47DF
secondary
#B6DFA2
accent
#ED3B73
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AF47DF

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

Preview Lab → · Contrast checker → · Palette generator →

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