#AF46D9#AF46D9

#AF46D9 is a mid, highly saturated purple. Relative luminance 0.185; OKLCH L 59.8% C 0.224 H 314.6°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#AF46D9
RGBrgb(175, 70, 217)
HSLhsl(283, 66%, 56%)
HSVhsv(283, 68%, 85%)
CMYKcmyk(19.4%, 67.7%, 0%, 14.9%)
CIE-LABlab(50.10, 64.32, -56.56)
CIE-LCHlch(50.10, 85.65, 318.67°)
OKLaboklab(59.8% 0.1572 -0.1592)
OKLCHoklch(59.8% 0.224 314.6)
XYZxyz(32.3917, 18.5051, 67.4977)
Luminance0.1850 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF46D9 #70D946
analogous
#6646D9 #AF46D9 #D946BA
triadic
#AF46D9 #D9AF46 #46D9AF
tetradic
#AF46D9 #D96646 #70D946 #46BAD9
square
#AF46D9 #D96646 #70D946 #46BAD9
split-complementary
#AF46D9 #BAD946 #46D966
monochromatic
#6A1C89 #9126BB #AF46D9 #C579E3 #DBACEE

Accessibility & contrast

On white

4.47
#AF46D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#AF46D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF46D9
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF46D9#FFFFFF#000000##000000
##AF46D91.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0071DD
Deuteranopia (green-blind)
#407AD6
Tritanopia (blue-blind)
#AB638A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #af46d9;
/* rgb */ color: rgb(175, 70, 217);
/* oklch */ color: oklch(59.8% 0.224 314.6);
Tailwind
colors: {
  custom: {
    50: '#cb81e5',
    500: '#af46d9',
    950: '#000000',
  },
}
SCSS
$custom: #af46d9;
$custom-light: #cb81e5;
$custom-dark: #000000;
JSON
{
  "hex": "#af46d9",
  "rgb": {
    "r": 175,
    "g": 70,
    "b": 217
  },
  "hsl": {
    "h": 282.857,
    "s": 65.919,
    "l": 56.275
  },
  "oklch": {
    "l": 0.59802,
    "c": 0.22371,
    "h": 314.6
  },
  "luminance": 0.18504
}

Semantic roles & 50–950 ramp

primary
#AF46D9
secondary
#B0DC9F
accent
#E93F6F
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AF46D9

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

Preview Lab → · Contrast checker → · Palette generator →

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