#AF46D7#AF46D7

#AF46D7 is a mid, highly saturated purple. Relative luminance 0.184; OKLCH L 59.7% C 0.222 H 315.2°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#AF46D7
RGBrgb(175, 70, 215)
HSLhsl(283, 64%, 56%)
HSVhsv(283, 67%, 84%)
CMYKcmyk(18.6%, 67.4%, 0%, 15.7%)
CIE-LABlab(49.98, 63.92, -55.62)
CIE-LCHlch(49.98, 84.73, 318.97°)
OKLaboklab(59.67% 0.1573 -0.1564)
OKLCHoklch(59.67% 0.222 315.2)
XYZxyz(32.1331, 18.4017, 66.1360)
Luminance0.1840 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF46D7 #6ED746
analogous
#6646D7 #AF46D7 #D746B6
triadic
#AF46D7 #D7AF46 #46D7AF
tetradic
#AF46D7 #D76646 #6ED746 #46B6D7
square
#AF46D7 #D76646 #6ED746 #46B6D7
split-complementary
#AF46D7 #B6D746 #46D766
monochromatic
#691D86 #9028B8 #AF46D7 #C578E2 #DBABED

Accessibility & contrast

On white

4.49
#AF46D7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#AF46D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF46D7
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF46D7#FFFFFF#000000##000000
##AF46D71.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0071DB
Deuteranopia (green-blind)
#427AD4
Tritanopia (blue-blind)
#AC6389
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #af46d7;
/* rgb */ color: rgb(175, 70, 215);
/* oklch */ color: oklch(59.7% 0.222 315.2);
Tailwind
colors: {
  custom: {
    50: '#cb81e4',
    500: '#af46d7',
    950: '#000000',
  },
}
SCSS
$custom: #af46d7;
$custom-light: #cb81e4;
$custom-dark: #000000;
JSON
{
  "hex": "#af46d7",
  "rgb": {
    "r": 175,
    "g": 70,
    "b": 215
  },
  "hsl": {
    "h": 283.448,
    "s": 64.444,
    "l": 55.882
  },
  "oklch": {
    "l": 0.59674,
    "c": 0.22185,
    "h": 315.2
  },
  "luminance": 0.18401
}

Semantic roles & 50–950 ramp

primary
#AF46D7
secondary
#AFDA9E
accent
#E7406E
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AF46D7

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

Preview Lab → · Contrast checker → · Palette generator →

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