#AF46D4#AF46D4

#AF46D4 is a mid, highly saturated purple. Relative luminance 0.182; OKLCH L 59.5% C 0.219 H 316.0°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#AF46D4
RGBrgb(175, 70, 212)
HSLhsl(284, 62%, 55%)
HSVhsv(284, 67%, 83%)
CMYKcmyk(17.5%, 67%, 0%, 16.9%)
CIE-LABlab(49.80, 63.33, -54.20)
CIE-LCHlch(49.80, 83.35, 319.44°)
OKLaboklab(59.48% 0.1575 -0.1523)
OKLCHoklch(59.48% 0.219 316)
XYZxyz(31.7512, 18.2489, 64.1245)
Luminance0.1825 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF46D4 #6BD446
analogous
#6846D4 #AF46D4 #D446B2
triadic
#AF46D4 #D4AF46 #46D4AF
tetradic
#AF46D4 #D46846 #6BD446 #46B2D4
square
#AF46D4 #D46846 #6BD446 #46B2D4
split-complementary
#AF46D4 #B2D446 #46D468
monochromatic
#681E81 #8F2AB3 #AF46D4 #C478E0 #DAA9EB

Accessibility & contrast

On white

4.52
#AF46D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#AF46D4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF46D4
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF46D4#FFFFFF#000000##000000
##AF46D41.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0070D8
Deuteranopia (green-blind)
#4579D1
Tritanopia (blue-blind)
#AD6188
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #af46d4;
/* rgb */ color: rgb(175, 70, 212);
/* oklch */ color: oklch(59.5% 0.219 316.0);
Tailwind
colors: {
  custom: {
    50: '#cb81e2',
    500: '#af46d4',
    950: '#000000',
  },
}
SCSS
$custom: #af46d4;
$custom-light: #cb81e2;
$custom-dark: #000000;
JSON
{
  "hex": "#af46d4",
  "rgb": {
    "r": 175,
    "g": 70,
    "b": 212
  },
  "hsl": {
    "h": 284.366,
    "s": 62.281,
    "l": 55.294
  },
  "oklch": {
    "l": 0.59484,
    "c": 0.21908,
    "h": 316
  },
  "luminance": 0.18248
}

Semantic roles & 50–950 ramp

primary
#AF46D4
secondary
#ADD99D
accent
#E5426D
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF46D4

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

Preview Lab → · Contrast checker → · Palette generator →

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