#AF46CC#AF46CC

#AF46CC is a mid, highly saturated purple. Relative luminance 0.179; OKLCH L 59.0% C 0.212 H 318.2°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#AF46CC
RGBrgb(175, 70, 204)
HSLhsl(287, 57%, 54%)
HSVhsv(287, 66%, 80%)
CMYKcmyk(14.2%, 65.7%, 0%, 20%)
CIE-LABlab(49.32, 61.76, -50.38)
CIE-LCHlch(49.32, 79.70, 320.79°)
OKLaboklab(58.99% 0.1578 -0.1411)
OKLCHoklch(58.99% 0.212 318.2)
XYZxyz(30.7669, 17.8552, 58.9408)
Luminance0.1785 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF46CC #63CC46
analogous
#6C46CC #AF46CC #CC46A6
triadic
#AF46CC #CCAF46 #46CCAF
tetradic
#AF46CC #CC6C46 #63CC46 #46A6CC
square
#AF46CC #CC6C46 #63CC46 #46A6CC
split-complementary
#AF46CC #A6CC46 #46CC6C
monochromatic
#642177 #8D2EA7 #AF46CC #C476D9 #D8A6E6

Accessibility & contrast

On white

4.59
#AF46CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#AF46CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF46CC
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF46CC#FFFFFF#000000##FFFFFF
##AF46CC1.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#126ED0
Deuteranopia (green-blind)
#4C79C9
Tritanopia (blue-blind)
#AE5E83
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #af46cc;
/* rgb */ color: rgb(175, 70, 204);
/* oklch */ color: oklch(59.0% 0.212 318.2);
Tailwind
colors: {
  custom: {
    50: '#ca81dc',
    500: '#af46cc',
    950: '#000000',
  },
}
SCSS
$custom: #af46cc;
$custom-light: #ca81dc;
$custom-dark: #000000;
JSON
{
  "hex": "#af46cc",
  "rgb": {
    "r": 175,
    "g": 70,
    "b": 204
  },
  "hsl": {
    "h": 287.015,
    "s": 56.78,
    "l": 53.725
  },
  "oklch": {
    "l": 0.58989,
    "c": 0.2117,
    "h": 318.2
  },
  "luminance": 0.17854
}

Semantic roles & 50–950 ramp

primary
#AF46CC
secondary
#A7D49A
accent
#E04869
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF46CC

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

Preview Lab → · Contrast checker → · Palette generator →

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