#AF46CB#AF46CB

#AF46CB is a mid, highly saturated purple. Relative luminance 0.178; OKLCH L 58.9% C 0.211 H 318.5°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#AF46CB
RGBrgb(175, 70, 203)
HSLhsl(287, 56%, 54%)
HSVhsv(287, 66%, 80%)
CMYKcmyk(13.8%, 65.5%, 0%, 20.4%)
CIE-LABlab(49.26, 61.56, -49.90)
CIE-LCHlch(49.26, 79.24, 320.98°)
OKLaboklab(58.93% 0.1578 -0.1397)
OKLCHoklch(58.93% 0.211 318.5)
XYZxyz(30.6474, 17.8074, 58.3112)
Luminance0.1781 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF46CB #62CB46
analogous
#6C46CB #AF46CB #CB46A5
triadic
#AF46CB #CBAF46 #46CBAF
tetradic
#AF46CB #CB6C46 #62CB46 #46A5CB
square
#AF46CB #CB6C46 #62CB46 #46A5CB
split-complementary
#AF46CB #A5CB46 #46CB6C
monochromatic
#642176 #8C2EA5 #AF46CB #C476D8 #D8A6E6

Accessibility & contrast

On white

4.60
#AF46CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#AF46CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF46CB
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF46CB#FFFFFF#000000##FFFFFF
##AF46CB1.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#156ECF
Deuteranopia (green-blind)
#4D79C8
Tritanopia (blue-blind)
#AF5E83
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #af46cb;
/* rgb */ color: rgb(175, 70, 203);
/* oklch */ color: oklch(58.9% 0.211 318.5);
Tailwind
colors: {
  custom: {
    50: '#ca81db',
    500: '#af46cb',
    950: '#000000',
  },
}
SCSS
$custom: #af46cb;
$custom-light: #ca81db;
$custom-dark: #000000;
JSON
{
  "hex": "#af46cb",
  "rgb": {
    "r": 175,
    "g": 70,
    "b": 203
  },
  "hsl": {
    "h": 287.368,
    "s": 56.118,
    "l": 53.529
  },
  "oklch": {
    "l": 0.58928,
    "c": 0.21078,
    "h": 318.5
  },
  "luminance": 0.17806
}

Semantic roles & 50–950 ramp

primary
#AF46CB
secondary
#A6D39A
accent
#DF4868
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF46CB

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

Preview Lab → · Contrast checker → · Palette generator →

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