#AF46CD#AF46CD

#AF46CD is a mid, highly saturated purple. Relative luminance 0.179; OKLCH L 59.1% C 0.213 H 317.9°. Best body text is #000000 at 4.58:1 contrast (WCAG AA passes).

Color values

HEX#AF46CD
RGBrgb(175, 70, 205)
HSLhsl(287, 57%, 54%)
HSVhsv(287, 66%, 80%)
CMYKcmyk(14.6%, 65.9%, 0%, 19.6%)
CIE-LABlab(49.38, 61.95, -50.86)
CIE-LCHlch(49.38, 80.15, 320.62°)
OKLaboklab(59.05% 0.1578 -0.1425)
OKLCHoklch(59.05% 0.213 317.9)
XYZxyz(30.8873, 17.9034, 59.5745)
Luminance0.1790 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF46CD #64CD46
analogous
#6C46CD #AF46CD #CD46A8
triadic
#AF46CD #CDAF46 #46CDAF
tetradic
#AF46CD #CD6C46 #64CD46 #46A8CD
square
#AF46CD #CD6C46 #64CD46 #46A8CD
split-complementary
#AF46CD #A8CD46 #46CD6C
monochromatic
#652078 #8D2DA8 #AF46CD #C476DA #D9A6E7

Accessibility & contrast

On white

4.58
#AF46CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#AF46CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF46CD
4.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF46CD#FFFFFF#000000##000000
##AF46CD1.004.584.584.58
#FFFFFF4.581.0021.0021.00
#0000004.5821.001.001.00
##0000004.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0F6FD1
Deuteranopia (green-blind)
#4B79CA
Tritanopia (blue-blind)
#AE5F84
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #af46cd;
/* rgb */ color: rgb(175, 70, 205);
/* oklch */ color: oklch(59.1% 0.213 317.9);
Tailwind
colors: {
  custom: {
    50: '#ca81dd',
    500: '#af46cd',
    950: '#000000',
  },
}
SCSS
$custom: #af46cd;
$custom-light: #ca81dd;
$custom-dark: #000000;
JSON
{
  "hex": "#af46cd",
  "rgb": {
    "r": 175,
    "g": 70,
    "b": 205
  },
  "hsl": {
    "h": 286.667,
    "s": 57.447,
    "l": 53.922
  },
  "oklch": {
    "l": 0.5905,
    "c": 0.21261,
    "h": 317.9
  },
  "luminance": 0.17902
}

Semantic roles & 50–950 ramp

primary
#AF46CD
secondary
#A7D49B
accent
#E14769
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF46CD

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

Preview Lab → · Contrast checker → · Palette generator →

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