#AF46D5#AF46D5

#AF46D5 is a mid, highly saturated purple. Relative luminance 0.183; OKLCH L 59.5% C 0.220 H 315.7°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#AF46D5
RGBrgb(175, 70, 213)
HSLhsl(284, 63%, 55%)
HSVhsv(284, 67%, 84%)
CMYKcmyk(17.8%, 67.1%, 0%, 16.5%)
CIE-LABlab(49.86, 63.52, -54.67)
CIE-LCHlch(49.86, 83.81, 319.28°)
OKLaboklab(59.55% 0.1574 -0.1537)
OKLCHoklch(59.55% 0.22 315.7)
XYZxyz(31.8777, 18.2995, 64.7909)
Luminance0.1830 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF46D5 #6CD546
analogous
#6746D5 #AF46D5 #D546B3
triadic
#AF46D5 #D5AF46 #46D5AF
tetradic
#AF46D5 #D56746 #6CD546 #46B3D5
square
#AF46D5 #D56746 #6CD546 #46B3D5
split-complementary
#AF46D5 #B3D546 #46D567
monochromatic
#681E83 #9029B5 #AF46D5 #C578E0 #DAAAEC

Accessibility & contrast

On white

4.51
#AF46D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#AF46D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF46D5
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF46D5#FFFFFF#000000##000000
##AF46D51.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0070D9
Deuteranopia (green-blind)
#4479D2
Tritanopia (blue-blind)
#AC6288
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #af46d5;
/* rgb */ color: rgb(175, 70, 213);
/* oklch */ color: oklch(59.5% 0.220 315.7);
Tailwind
colors: {
  custom: {
    50: '#cb81e3',
    500: '#af46d5',
    950: '#000000',
  },
}
SCSS
$custom: #af46d5;
$custom-light: #cb81e3;
$custom-dark: #000000;
JSON
{
  "hex": "#af46d5",
  "rgb": {
    "r": 175,
    "g": 70,
    "b": 213
  },
  "hsl": {
    "h": 284.056,
    "s": 62.996,
    "l": 55.49
  },
  "oklch": {
    "l": 0.59547,
    "c": 0.22,
    "h": 315.7
  },
  "luminance": 0.18298
}

Semantic roles & 50–950 ramp

primary
#AF46D5
secondary
#ADD99E
accent
#E6426D
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140B15
muted
#827C84

Preview Lab

Preview with #AF46D5

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

Preview Lab → · Contrast checker → · Palette generator →

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