#AF40C0#AF40C0

#AF40C0 is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 57.6% C 0.209 H 322.1°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#AF40C0
RGBrgb(175, 64, 192)
HSLhsl(292, 50%, 50%)
HSVhsv(292, 67%, 75%)
CMYKcmyk(8.9%, 66.7%, 0%, 24.7%)
CIE-LABlab(47.74, 61.98, -45.97)
CIE-LCHlch(47.74, 77.17, 323.44°)
OKLaboklab(57.63% 0.1647 -0.1282)
OKLCHoklch(57.63% 0.209 322.1)
XYZxyz(29.0260, 16.5881, 51.5319)
Luminance0.1659 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF40C0 #51C040
analogous
#6F40C0 #AF40C0 #C04091
triadic
#AF40C0 #C0AF40 #40C0AF
tetradic
#AF40C0 #C06F40 #51C040 #4091C0
square
#AF40C0 #C06F40 #51C040 #4091C0
split-complementary
#AF40C0 #91C040 #40C06F
monochromatic
#5C2164 #853092 #AF40C0 #C26ECF #D69CDE

Accessibility & contrast

On white

4.86
#AF40C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#AF40C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF40C0
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF40C0#FFFFFF#000000##FFFFFF
##AF40C01.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B69C4
Deuteranopia (green-blind)
#5176BD
Tritanopia (blue-blind)
#B1557B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #af40c0;
/* rgb */ color: rgb(175, 64, 192);
/* oklch */ color: oklch(57.6% 0.209 322.1);
Tailwind
colors: {
  custom: {
    50: '#ca7dd3',
    500: '#af40c0',
    950: '#000000',
  },
}
SCSS
$custom: #af40c0;
$custom-light: #ca7dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#af40c0",
  "rgb": {
    "r": 175,
    "g": 64,
    "b": 192
  },
  "hsl": {
    "h": 292.031,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.57627,
    "c": 0.20869,
    "h": 322.1
  },
  "luminance": 0.16587
}

Semantic roles & 50–950 ramp

primary
#AF40C0
secondary
#99CB91
accent
#DA4E60
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140A14
muted
#827C83

Preview Lab

Preview with #AF40C0

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

Preview Lab → · Contrast checker → · Palette generator →

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