#AF47DB#AF47DB

#AF47DB is a mid, highly saturated purple. Relative luminance 0.187; OKLCH L 60.0% C 0.224 H 314.0°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#AF47DB
RGBrgb(175, 71, 219)
HSLhsl(282, 67%, 57%)
HSVhsv(282, 68%, 86%)
CMYKcmyk(20.1%, 67.6%, 0%, 14.1%)
CIE-LABlab(50.38, 64.31, -57.26)
CIE-LCHlch(50.38, 86.10, 318.32°)
OKLaboklab(60.04% 0.156 -0.1613)
OKLCHoklch(60.04% 0.224 314)
XYZxyz(32.7165, 18.7360, 68.8971)
Luminance0.1873 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF47DB #73DB47
analogous
#6547DB #AF47DB #DB47BD
triadic
#AF47DB #DBAF47 #47DBAF
tetradic
#AF47DB #DB6547 #73DB47 #47BDDB
square
#AF47DB #DB6547 #73DB47 #47BDDB
split-complementary
#AF47DB #BDDB47 #47DB65
monochromatic
#6B1B8C #9225BF #AF47DB #C57AE5 #DCADEF

Accessibility & contrast

On white

4.42
#AF47DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#AF47DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF47DB
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF47DB#FFFFFF#000000##000000
##AF47DB1.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072DF
Deuteranopia (green-blind)
#3F7AD8
Tritanopia (blue-blind)
#AB658C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #af47db;
/* rgb */ color: rgb(175, 71, 219);
/* oklch */ color: oklch(60.0% 0.224 314.0);
Tailwind
colors: {
  custom: {
    50: '#cb82e7',
    500: '#af47db',
    950: '#000000',
  },
}
SCSS
$custom: #af47db;
$custom-light: #cb82e7;
$custom-dark: #000000;
JSON
{
  "hex": "#af47db",
  "rgb": {
    "r": 175,
    "g": 71,
    "b": 219
  },
  "hsl": {
    "h": 282.162,
    "s": 67.273,
    "l": 56.863
  },
  "oklch": {
    "l": 0.60038,
    "c": 0.22434,
    "h": 314
  },
  "luminance": 0.18735
}

Semantic roles & 50–950 ramp

primary
#AF47DB
secondary
#B3DDA1
accent
#EA3E71
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AF47DB

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

Preview Lab → · Contrast checker → · Palette generator →

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