#AF4CDC#AF4CDC

#AF4CDC is a mid, highly saturated purple. Relative luminance 0.195; OKLCH L 60.7% C 0.219 H 313.4°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#AF4CDC
RGBrgb(175, 76, 220)
HSLhsl(281, 67%, 58%)
HSVhsv(281, 65%, 86%)
CMYKcmyk(20.5%, 65.5%, 0%, 13.7%)
CIE-LABlab(51.21, 62.36, -56.49)
CIE-LCHlch(51.21, 84.14, 317.83°)
OKLaboklab(60.66% 0.1505 -0.159)
OKLCHoklch(60.66% 0.219 313.4)
XYZxyz(33.1797, 19.4511, 69.7029)
Luminance0.1945 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4CDC #79DC4C
analogous
#674CDC #AF4CDC #DC4CC1
triadic
#AF4CDC #DCAF4C #4CDCAF
tetradic
#AF4CDC #DC674C #79DC4C #4CC1DC
square
#AF4CDC #DC674C #79DC4C #4CC1DC
split-complementary
#AF4CDC #C1DC4C #4CDC67
monochromatic
#6D1C91 #9326C4 #AF4CDC #C67FE6 #DDB2F0

Accessibility & contrast

On white

4.29
#AF4CDC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#AF4CDC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4CDC
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4CDC#FFFFFF#000000##000000
##AF4CDC1.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075E0
Deuteranopia (green-blind)
#437CD9
Tritanopia (blue-blind)
#AB688E
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #af4cdc;
/* rgb */ color: rgb(175, 76, 220);
/* oklch */ color: oklch(60.7% 0.219 313.4);
Tailwind
colors: {
  custom: {
    50: '#cb85e8',
    500: '#af4cdc',
    950: '#000000',
  },
}
SCSS
$custom: #af4cdc;
$custom-light: #cb85e8;
$custom-dark: #000000;
JSON
{
  "hex": "#af4cdc",
  "rgb": {
    "r": 175,
    "g": 76,
    "b": 220
  },
  "hsl": {
    "h": 281.25,
    "s": 67.29,
    "l": 58.039
  },
  "oklch": {
    "l": 0.60656,
    "c": 0.21894,
    "h": 313.4
  },
  "luminance": 0.1945
}

Semantic roles & 50–950 ramp

primary
#AF4CDC
secondary
#B7DFA5
accent
#EA3E74
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AF4CDC

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

Preview Lab → · Contrast checker → · Palette generator →

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